md-cluster: make resync lock also could be interruptted
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 12 Aug 2016 05:42:43 +0000 (13:42 +0800)
committerShaohua Li <shli@fb.com>
Fri, 9 Sep 2016 18:09:25 +0000 (11:09 -0700)
commit4aded6971b0644f089a43f35698d688ae027b0e4
tree23de9fbf2a77b7af8f5991bd23fcfa40684dbbf9
parent7e62dc4a50c417d5ed1a92973adb29bbf516dc0a
md-cluster: make resync lock also could be interruptted

When one node is perform resync or recovery, other nodes
can't get resync lock and could block for a while before
it holds the lock, so we can't stop array immediately for
this scenario.

To make array could be stop quickly, we check MD_CLOSING
in dlm_lock_sync_interruptible to make us can interrupt
the lock request.

Reviewed-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.026721 seconds and 5 git commands to generate.