X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=block%2Fblk-core.c;h=4884f1e7451bf98402a556d02216aa75f658dbbc;hb=021a24460dc28e7412aecfae89f60e1847e685c0;hp=1cc4fa6bc7fe1fe66163f1298c67866f4de43dd2;hpb=ed7b6b4f6e915cb0bc52d0000bcc63168867b6ac;p=linux-2.6-microblaze.git diff --git a/block/blk-core.c b/block/blk-core.c index 1cc4fa6bc7fe..4884f1e7451b 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -814,9 +814,9 @@ static noinline_for_stack bool submit_bio_checks(struct bio *bio) /* * For a REQ_NOWAIT based request, return -EOPNOTSUPP - * if queue is not a request based queue. + * if queue does not support NOWAIT. */ - if ((bio->bi_opf & REQ_NOWAIT) && !queue_is_mq(q)) + if ((bio->bi_opf & REQ_NOWAIT) && !blk_queue_nowait(q)) goto not_supported; if (should_fail_bio(bio))