md-cluster: use FORCEUNLOCK in lockres_free
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 12 Aug 2016 05:42:35 +0000 (13:42 +0800)
committerShaohua Li <shli@fb.com>
Fri, 9 Sep 2016 18:09:21 +0000 (11:09 -0700)
commit36c2cffc57f98616b6f7dbf708eabc4e303e8e1d
tree901423e7f9d4878a1ace573563f858dd93341e7a
parent92f494c46244225c2df12370a27f616369eb9a7f
md-cluster: use FORCEUNLOCK in lockres_free

For dlm_unlock, we need to pass flag to dlm_unlock as the
third parameter instead of set res->flags.

Also, DLM_LKF_FORCEUNLOCK is more suitable for dlm_unlock
since it works even the lock is on waiting or convert queue.

Acked-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c
This page took 0.024517 seconds and 5 git commands to generate.