]> git.karo-electronics.de Git - linux-beck.git/commit
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>
Wed, 21 Sep 2016 16:09:44 +0000 (09:09 -0700)
commit400cb454a4205ec1d7311bc3dd8104859c26ba46
tree7007fe9bb16e607a40d1433ab72fbf9f209e8ff0
parente566aef12a166732b7fd85897f8736ccf4fc7814
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