Whamcloud - gitweb
LU-14810 lnet: Cancel discovery ping/push on shutdown 56/53356/2
authorChris Horn <chris.horn@hpe.com>
Tue, 5 Dec 2023 09:56:57 +0000 (03:56 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 Dec 2023 01:44:45 +0000 (01:44 +0000)
commitc3b9597742d5118a96f56129e7dd30d84468d2c8
tree6b3ce63a41d21dd73c44b2b46dedb376adacfad6
parentaa399f4af20cee99d28725c99046463be0aa5d3c
LU-14810 lnet: Cancel discovery ping/push on shutdown

Discovery shutdown can race with ping and push events. In some cases
this can result in failing to unlink ping/push MDs on shutdown.
Protect against this by checking for PING/PUSH_FAILED state on peers
on the request queue.

Test-Parameters: trivial
Test-Parameters: testlist=sanity-lnet env=ONLY=500,ONLY_REPEAT=50
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I84a1f5beb6508651bc62e1dd93271f9e72f5081c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53356
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/peer.c