|
@@ -2218,6 +2218,8 @@ static void sync_request_write(struct mddev *mddev, struct r1bio *r1_bio)
|
|
(i == r1_bio->read_disk ||
|
|
(i == r1_bio->read_disk ||
|
|
!test_bit(MD_RECOVERY_SYNC, &mddev->recovery))))
|
|
!test_bit(MD_RECOVERY_SYNC, &mddev->recovery))))
|
|
continue;
|
|
continue;
|
|
|
|
+ if (test_bit(Faulty, &conf->mirrors[i].rdev->flags))
|
|
|
|
+ continue;
|
|
|
|
|
|
bio_set_op_attrs(wbio, REQ_OP_WRITE, 0);
|
|
bio_set_op_attrs(wbio, REQ_OP_WRITE, 0);
|
|
if (test_bit(FailFast, &conf->mirrors[i].rdev->flags))
|
|
if (test_bit(FailFast, &conf->mirrors[i].rdev->flags))
|