Message ID | 20170726235806.12148-8-rgoldwyn@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index a4fbd911d566..446ac581627f 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c @@ -1219,6 +1219,11 @@ static int mirror_map(struct dm_target *ti, struct bio *bio) if (bio->bi_opf & REQ_RAHEAD) return DM_MAPIO_KILL; + if (bio->bi_opf & REQ_NOWAIT) { + bio_wouldblock_error(bio); + return DM_MAPIO_SUBMITTED; + } + queue_bio(ms, bio, rw); return DM_MAPIO_SUBMITTED; }