projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b410aff
)
blk-mq: have blk_mq_dispatch_rq_list() return if we queued IO or not
author
Jens Axboe
<axboe@fb.com>
Fri, 17 Feb 2017 18:35:35 +0000
(11:35 -0700)
committer
Jens Axboe
<axboe@fb.com>
Fri, 17 Feb 2017 19:35:47 +0000
(12:35 -0700)
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>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index ade89197a4f1be88775a8d4ada9d8993568c92ec..6baa0c9fc06dce7fa1e79821d6278e78d8e32742 100644
(file)
--- 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)