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.
1 parent b02383e commit 4997b72Copy full SHA for 4997b72
drivers/md/raid5.c
@@ -664,6 +664,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
664
if (test_bit(R5_ReadNoMerge, &sh->dev[i].flags))
665
bi->bi_rw |= REQ_FLUSH;
666
667
+ bi->bi_vcnt = 1;
668
bi->bi_io_vec[0].bv_len = STRIPE_SIZE;
669
bi->bi_io_vec[0].bv_offset = 0;
670
bi->bi_size = STRIPE_SIZE;
@@ -701,6 +702,7 @@ static void ops_run_io(struct stripe_head *sh, struct stripe_head_state *s)
701
702
else
703
rbi->bi_sector = (sh->sector
704
+ rrdev->data_offset);
705
+ rbi->bi_vcnt = 1;
706
rbi->bi_io_vec[0].bv_len = STRIPE_SIZE;
707
rbi->bi_io_vec[0].bv_offset = 0;
708
rbi->bi_size = STRIPE_SIZE;
0 commit comments