Whamcloud - gitweb
LU-17207 lnet: race b/w monitor thr stop and discovery push 34/52734/4
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 17 Oct 2023 18:43:14 +0000 (11:43 -0700)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 25 Oct 2023 14:35:58 +0000 (14:35 +0000)
commit5c6ca4991382a805da6e824c1dbfab931987dda6
treec530b4a7cda7544a496e38333e96367e1386deaa
parent706b3b4344a2ceaeea85425ac4821e83ff4ffb4e
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
lnet/lnet/api-ni.c