diff options
Diffstat (limited to 'drivers/md/raid1.c')
| -rw-r--r-- | drivers/md/raid1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 7e63ccc4ae7b..88c61d3090b0 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
| @@ -2112,13 +2112,14 @@ static void process_checks(struct r1bio *r1_bio) | |||
| 2112 | struct page **spages = get_resync_pages(sbio)->pages; | 2112 | struct page **spages = get_resync_pages(sbio)->pages; |
| 2113 | struct bio_vec *bi; | 2113 | struct bio_vec *bi; |
| 2114 | int page_len[RESYNC_PAGES] = { 0 }; | 2114 | int page_len[RESYNC_PAGES] = { 0 }; |
| 2115 | struct bvec_iter_all iter_all; | ||
| 2115 | 2116 | ||
| 2116 | if (sbio->bi_end_io != end_sync_read) | 2117 | if (sbio->bi_end_io != end_sync_read) |
| 2117 | continue; | 2118 | continue; |
| 2118 | /* Now we can 'fixup' the error value */ | 2119 | /* Now we can 'fixup' the error value */ |
| 2119 | sbio->bi_status = 0; | 2120 | sbio->bi_status = 0; |
| 2120 | 2121 | ||
| 2121 | bio_for_each_segment_all(bi, sbio, j) | 2122 | bio_for_each_segment_all(bi, sbio, j, iter_all) |
| 2122 | page_len[j] = bi->bv_len; | 2123 | page_len[j] = bi->bv_len; |
| 2123 | 2124 | ||
| 2124 | if (!status) { | 2125 | if (!status) { |
