From: Dmitry Eremin Date: Thu, 13 Jul 2017 20:56:41 +0000 (+0300) Subject: LU-9769 lnet: Fix lost lock X-Git-Tag: 2.10.51~44 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9761b5c6310321f336cb30e97f19ebdd136251ff;p=fs%2Flustre-release.git LU-9769 lnet: Fix lost lock Unlock lnet_net_lock in case of error in function lnet_dyn_del_net(). Change-Id: Ie3fc8e27abc72077b9c0c330b5d325a47e5236e1 Signed-off-by: Dmitry Eremin Reviewed-on: https://review.whamcloud.com/28039 Reviewed-by: Amir Shehata Reviewed-by: Andreas Dilger Tested-by: Jenkins Reviewed-by: James Simmons Tested-by: Maloo --- diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index e912e58..4341d99 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -2556,6 +2556,7 @@ lnet_dyn_del_net(__u32 net_id) net = lnet_get_net_locked(net_id); if (net == NULL) { + lnet_net_unlock(0); rc = -EINVAL; goto out; }