Whamcloud - gitweb
LU-12233 lnet: deadlock on LNet shutdown 33/39933/3
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 16 Sep 2020 16:46:48 +0000 (09:46 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 25 Sep 2020 03:13:04 +0000 (03:13 +0000)
commite0c445648a38fb72cc426ac0c16c33f5183cda08
treeb4d127cb05b16c8ad5cf6e176ab082697e85054c
parent880218785f06cd11c488fa6b9dfd6bf14cc2451c
LU-12233 lnet: deadlock on LNet shutdown

Release ln_api_mutex during LNet shutdown while waiting
for zombie LNI to allow other threads to read the LNet
state updated by the shutdown and fall through, avoiding
the deadlock

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Iaba11624d5b79bd0acb4add39f6153c55770440a
Reviewed-on: https://review.whamcloud.com/39933
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c