Whamcloud - gitweb
LU-17207 lnet: race b/w monitor thr stop and discovery push 34/52734/6
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 17 Oct 2023 18:43:14 +0000 (11:43 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 22:03:52 +0000 (22:03 +0000)
commit36b14a23a6e8240045074b097adfe01cb529d4a3
treeaf1fe8a9f1435da33787a9bca9dd19cee7fd3e61
parent1b694ad04f099924cb5760cbaf1f09e5843975aa
LU-17207 lnet: race b/w monitor thr stop and discovery push

As a result of race, discovery thread may attempt to dereference
a message on ln_mt_resendqs which was just freed by monitor thread
stopping. Make sure discovery thread is stopped first.

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I0dfcf3bc5bb3c8df195388599f571bdd3caaa3d7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52734
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
lnet/lnet/api-ni.c