summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-02-17 19:35:35 +0100
committerJens Axboe <axboe@fb.com>2017-02-17 20:35:47 +0100
commit2aa0f21d5491976729087104553b7bdaef047b9d (patch)
treed50aef96b5d498c5fc07caf883b4c5b8dec9686a /block
parentblock: do not allow updates through sysfs until registration completes (diff)
downloadlinux-2aa0f21d5491976729087104553b7bdaef047b9d.tar.xz
linux-2aa0f21d5491976729087104553b7bdaef047b9d.zip
blk-mq: have blk_mq_dispatch_rq_list() return if we queued IO or not
Currently we're almost there, but if we dispatch nothing, then we still return success. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Omar Sandoval <osandov@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index ade89197a4f1..6baa0c9fc06d 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1005,7 +1005,7 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list)
blk_mq_run_hw_queue(hctx, true);
}
- return ret != BLK_MQ_RQ_QUEUE_BUSY;
+ return queued != 0;
}
static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)