md-cluster: don't send msg if array is closing
authorGuoqing Jiang <gqjiang@suse.com>
Mon, 2 Jul 2018 08:26:26 +0000 (16:26 +0800)
committerShaohua Li <shli@fb.com>
Thu, 5 Jul 2018 18:17:02 +0000 (11:17 -0700)
commitdf8c676418e1eb6f7bbafc1e01983f3538584894
treec6fb3420bee7c86d9cb1e3973c4df611a366a856
parent0357ba27bd611ff496390fdb172fdb31ca475398
md-cluster: don't send msg if array is closing

If we close an array which resync thread is running,
then we don't need the node to send msg since another
node would launch the resync thread to continue the
rest works. Also send a message is time consuming,
we should avoid it.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md-cluster.c