md-cluster: call md_kick_rdev_from_array once ack failed
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 12 Aug 2016 05:42:34 +0000 (13:42 +0800)
committerShaohua Li <shli@fb.com>
Fri, 9 Sep 2016 18:09:20 +0000 (11:09 -0700)
commit92f494c46244225c2df12370a27f616369eb9a7f
tree3f97adc44fc5295a7143679fb1ad68cb7a1781e1
parentc94455558337eece474eebb6a16b905f98930418
md-cluster: call md_kick_rdev_from_array once ack failed

The new_disk_ack could return failure if WAITING_FOR_NEWDISK
is not set, so we need to kick the dev from array in case
failure happened.

And we missed to check err before call new_disk_ack othwise
we could kick a rdev which isn't in array, thanks for the
reminder from Shaohua.

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.c
This page took 0.025283 seconds and 5 git commands to generate.