Skip to content

Commit 8a554c6

Browse files
committed
Merge tag 'md-fixes-20231120' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-6.7
Pull MD fix from Song. * tag 'md-fixes-20231120' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md: md: fix bi_status reporting in md_end_clone_io
2 parents 3eba5e0 + 45b4789 commit 8a554c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/md/md.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8666,7 +8666,8 @@ static void md_end_clone_io(struct bio *bio)
86668666
struct bio *orig_bio = md_io_clone->orig_bio;
86678667
struct mddev *mddev = md_io_clone->mddev;
86688668

8669-
orig_bio->bi_status = bio->bi_status;
8669+
if (bio->bi_status && !orig_bio->bi_status)
8670+
orig_bio->bi_status = bio->bi_status;
86708671

86718672
if (md_io_clone->start_time)
86728673
bio_end_io_acct(orig_bio, md_io_clone->start_time);

0 commit comments

Comments
 (0)