Loading drivers/md/raid10.c +14 −12 Original line number Diff line number Diff line Loading @@ -465,19 +465,21 @@ static void raid10_end_write_request(struct bio *bio) if (test_bit(FailFast, &rdev->flags) && (bio->bi_opf & MD_FAILFAST)) { md_error(rdev->mddev, rdev); if (!test_bit(Faulty, &rdev->flags)) /* This is the only remaining device, * We need to retry the write without * FailFast } /* * When the device is faulty, it is not necessary to * handle write error. * For failfast, this is the only remaining device, * We need to retry the write without FailFast. */ if (!test_bit(Faulty, &rdev->flags)) set_bit(R10BIO_WriteError, &r10_bio->state); else { r10_bio->devs[slot].bio = NULL; to_put = bio; dec_rdev = 1; } } else set_bit(R10BIO_WriteError, &r10_bio->state); } } else { /* Loading Loading
drivers/md/raid10.c +14 −12 Original line number Diff line number Diff line Loading @@ -465,19 +465,21 @@ static void raid10_end_write_request(struct bio *bio) if (test_bit(FailFast, &rdev->flags) && (bio->bi_opf & MD_FAILFAST)) { md_error(rdev->mddev, rdev); if (!test_bit(Faulty, &rdev->flags)) /* This is the only remaining device, * We need to retry the write without * FailFast } /* * When the device is faulty, it is not necessary to * handle write error. * For failfast, this is the only remaining device, * We need to retry the write without FailFast. */ if (!test_bit(Faulty, &rdev->flags)) set_bit(R10BIO_WriteError, &r10_bio->state); else { r10_bio->devs[slot].bio = NULL; to_put = bio; dec_rdev = 1; } } else set_bit(R10BIO_WriteError, &r10_bio->state); } } else { /* Loading