Whamcloud - gitweb
LU-12249 lnet: fix list corruption 78/34778/8
authorAmir Shehata <ashehata@whamcloud.com>
Tue, 30 Apr 2019 05:57:21 +0000 (22:57 -0700)
committerAmir Shehata <ashehata@whamcloud.com>
Fri, 7 Jun 2019 18:07:52 +0000 (18:07 +0000)
commitd799ac910cd6c980b40c81b76eaefb65b88904d0
treee4e39328a1b73f50d61d2b403ea8719bc3accc2e
parentd7b5f3114d51d5a9d1a34f5073e0bb2d0d63d302
LU-12249 lnet: fix list corruption

In shutdown the resend queues are cleared and freed. The monitor
thread state is set to shutdown. It is possible to get lnet_finalize()
called after the queues are freed. The code checks for ln_state to see
if we're shutting down. But in this case we should really be checking
ln_mt_state. The monitor thread is the one that matters in this case,
because it's the one which allocates and frees the resend queues.

Test-Parameters: forbuildonly
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: Ia077cec7a52ef5cd2e1b231437c6265ba9416b1b
Reviewed-on: https://review.whamcloud.com/34778
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Tested-by: Jenkins
lnet/lnet/lib-move.c
lnet/lnet/lib-msg.c