Whamcloud - gitweb
LU-17207 lnet: race b/w monitor thr stop and discovery push
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 17 Oct 2023 18:43:14 +0000 (11:43 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Nov 2023 08:39:23 +0000 (08:39 +0000)
commitd00babe126acc146eeeaa55b99e50bf8408ef208
treee7dba0abc3879118260a0a8dd4668d1cc74b0569
parent8d271a51500a567ff10b6efc2f96220ccc7ca945
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.

Lustre-change: https://review.whamcloud.com/52734/
Lustre-commit: TBD (from 5c6ca4991382a805da6e824c1dbfab931987dda6)

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I0dfcf3bc5bb3c8df195388599f571bdd3caaa3d7
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52935
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/lnet/api-ni.c