Message ID | 20171004135511.26110-9-rgoldwyn@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c index 2209a9700acd..e67a7042ae68 100644 --- a/drivers/md/dm-delay.c +++ b/drivers/md/dm-delay.c @@ -240,6 +240,10 @@ static int delay_bio(struct delay_c *dc, int delay, struct bio *bio) if (!delay || !atomic_read(&dc->may_delay)) return DM_MAPIO_REMAPPED; + if (bio->bi_opf & REQ_NOWAIT) { + bio_wouldblock_error(bio); + return DM_MAPIO_SUBMITTED; + } delayed = dm_per_bio_data(bio, sizeof(struct dm_delay_info)); delayed->context = dc;