Whamcloud - gitweb
LU-9997 ldlm: check lock cancellation in ldlm_cli_cancel() 80/29080/6
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 15 Sep 2017 19:23:58 +0000 (19:23 +0000)
committerJinshan Xiong <jinshan.xiong@intel.com>
Wed, 15 Nov 2017 17:20:58 +0000 (17:20 +0000)
commitf4ea4017b4d6a420146b2959f9feb11866858b4a
tree7d3c640ccc820c1c9c982fa0604b0bcd800ae8da
parente43b0e5c0ccbacd8adf30713babd865b5a7c58c7
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.

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