We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3eba5e0 + 45b4789 commit 8a554c6Copy full SHA for 8a554c6
drivers/md/md.c
@@ -8666,7 +8666,8 @@ static void md_end_clone_io(struct bio *bio)
8666
struct bio *orig_bio = md_io_clone->orig_bio;
8667
struct mddev *mddev = md_io_clone->mddev;
8668
8669
- orig_bio->bi_status = bio->bi_status;
+ if (bio->bi_status && !orig_bio->bi_status)
8670
+ orig_bio->bi_status = bio->bi_status;
8671
8672
if (md_io_clone->start_time)
8673
bio_end_io_acct(orig_bio, md_io_clone->start_time);
0 commit comments