Whamcloud - gitweb
LU-13929 lnet: modify assertion in lnet_post_send_locked
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 25 Nov 2020 00:05:48 +0000 (16:05 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 Aug 2022 16:31:34 +0000 (16:31 +0000)
commitaf3c6b5a4b68d6754dc35efa034721f33feb205d
tree37e3b987c6123263c9547f96219bbe5bf9767a55
parent16dbb70a7d1a435acc1bd12edc826b55574f9f79
LU-13929 lnet: modify assertion in lnet_post_send_locked

Check that the pointer to the local interface is not NULL
before asserting. While checking if local ni is the destination,
the assertion may attempt to dereference pointer to local
interface after it has already been cleaned up on shutdown.

Lustre-change: https://review.whamcloud.com/40749
Lustre-commit: e5a8f3fc12840aee97fca03d76b1ae9b4572acb8

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I0f4be04a728a7243823bec70f9efbe52bcb104b3
Reviewed-on: https://review.whamcloud.com/48265
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/lib-move.c