summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-02-17 11:35:35 -0700
committerJens Axboe <axboe@fb.com>2017-02-17 11:35:35 -0700
commit11e3c3dddd649e1d94dbeaa3b47a0b5861a16c67 (patch)
tree54ddb1a02f9fdca13c8d87c4a68e257d4ca7ec42
parent5ca9befcdb4e9a269398fe4f62710a3c3a105531 (diff)
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>
-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 5564a9d103ca..e148adcb465a 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1002,7 +1002,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)