Whamcloud - gitweb
LU-9997 ldlm: check lock cancellation in ldlm_cli_cancel() 39/30339/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 15 Sep 2017 19:23:58 +0000 (19:23 +0000)
committerJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Dec 2017 19:37:30 +0000 (19:37 +0000)
commit5de61ac6736ed1bfd7425bab4b2c5f7319f65d8e
treed250516479b83710b98a9f5652f9eff64b38fac5
parenteb339c2df4b08a73d329a19820616fc7fb25216f
LU-9997 ldlm: check lock cancellation in ldlm_cli_cancel()

In that case, the assert for 'list_empty(&lock->l_bl_ast)' will fail
because the lock is already in a cancel list.

This patch checks if the lock is already being canceled in prior.

Lustre-change: https://review.whamcloud.com/29080
Lustre-commit: f4ea4017b4d6a420146b2959f9feb11866858b4a

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I04b9df789cf3b3b5e6dd61a647376307f9975f4a
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30339
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_request.c