summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 5e30b08b91d9..d9c0c6a77eb5 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1207,14 +1207,14 @@ static int mirror_map(struct dm_target *ti, struct bio *bio)
1207 1207
1208 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0); 1208 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0);
1209 if (r < 0 && r != -EWOULDBLOCK) 1209 if (r < 0 && r != -EWOULDBLOCK)
1210 return r; 1210 return DM_MAPIO_KILL;
1211 1211
1212 /* 1212 /*
1213 * If region is not in-sync queue the bio. 1213 * If region is not in-sync queue the bio.
1214 */ 1214 */
1215 if (!r || (r == -EWOULDBLOCK)) { 1215 if (!r || (r == -EWOULDBLOCK)) {
1216 if (bio->bi_opf & REQ_RAHEAD) 1216 if (bio->bi_opf & REQ_RAHEAD)
1217 return -EIO; 1217 return DM_MAPIO_KILL;
1218 1218
1219 queue_bio(ms, bio, rw); 1219 queue_bio(ms, bio, rw);
1220 return DM_MAPIO_SUBMITTED; 1220 return DM_MAPIO_SUBMITTED;
@@ -1226,7 +1226,7 @@ static int mirror_map(struct dm_target *ti, struct bio *bio)
1226 */ 1226 */
1227 m = choose_mirror(ms, bio->bi_iter.bi_sector); 1227 m = choose_mirror(ms, bio->bi_iter.bi_sector);
1228 if (unlikely(!m)) 1228 if (unlikely(!m))
1229 return -EIO; 1229 return DM_MAPIO_KILL;
1230 1230
1231 dm_bio_record(&bio_record->details, bio); 1231 dm_bio_record(&bio_record->details, bio);
1232 bio_record->m = m; 1232 bio_record->m = m;