File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -474,8 +474,6 @@ static void raid1_end_write_request(struct bio *bio)
474
474
/*
475
475
* When the device is faulty, it is not necessary to
476
476
* handle write error.
477
- * For failfast, this is the only remaining device,
478
- * We need to retry the write without FailFast.
479
477
*/
480
478
if (!test_bit (Faulty , & rdev -> flags ))
481
479
set_bit (R1BIO_WriteError , & r1_bio -> state );
Original file line number Diff line number Diff line change @@ -471,12 +471,12 @@ static void raid10_end_write_request(struct bio *bio)
471
471
/*
472
472
* When the device is faulty, it is not necessary to
473
473
* handle write error.
474
- * For failfast, this is the only remaining device,
475
- * We need to retry the write without FailFast.
476
474
*/
477
475
if (!test_bit (Faulty , & rdev -> flags ))
478
476
set_bit (R10BIO_WriteError , & r10_bio -> state );
479
477
else {
478
+ /* Fail the request */
479
+ set_bit (R10BIO_Degraded , & r10_bio -> state );
480
480
r10_bio -> devs [slot ].bio = NULL ;
481
481
to_put = bio ;
482
482
dec_rdev = 1 ;
You can’t perform that action at this time.
0 commit comments