Whamcloud - gitweb
LU-12233 lnet: deadlock on LNet shutdown 71/40171/2
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 7 Oct 2020 22:13:31 +0000 (18:13 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Oct 2020 07:49:44 +0000 (07:49 +0000)
commit6d92d5d0e710e60a8ede7da19e6a577696697a91
tree8809e92c34abd29f9d6a752787ddd7d70a5df237
parent877d95b582db3d182d13dac4947c1f43b0e851dc
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

Lustre-change: https://review.whamcloud.com/39933
Lustre-commit: e0c445648a38fb72cc426ac0c16c33f5183cda08

Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: If0886f1bc4412dd9cacb08a0f06fa69aeeed1c5b
Reviewed-on: https://review.whamcloud.com/40171
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c