diff options
-rw-r--r-- | drivers/md/dm-raid1.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index fd61f98ee1f6..b37467618b16 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c | |||
@@ -1195,11 +1195,9 @@ static int mirror_map(struct dm_target *ti, struct bio *bio, | |||
1195 | return -EIO; | 1195 | return -EIO; |
1196 | 1196 | ||
1197 | read_record = mempool_alloc(ms->read_record_pool, GFP_NOIO); | 1197 | read_record = mempool_alloc(ms->read_record_pool, GFP_NOIO); |
1198 | if (likely(read_record)) { | 1198 | dm_bio_record(&read_record->details, bio); |
1199 | dm_bio_record(&read_record->details, bio); | 1199 | map_context->ptr = read_record; |
1200 | map_context->ptr = read_record; | 1200 | read_record->m = m; |
1201 | read_record->m = m; | ||
1202 | } | ||
1203 | 1201 | ||
1204 | map_bio(m, bio); | 1202 | map_bio(m, bio); |
1205 | 1203 | ||