diff options
author | Jens Axboe <axboe@kernel.dk> | 2017-11-10 09:13:21 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-10 19:55:57 -0700 |
commit | 79f720a751cad613620d0237e3b44f89f4a69181 (patch) | |
tree | 4f530507baac038f38fa6974734f3a0595b2abb1 /fs | |
parent | f0fba398fec65ff5a2e1bf8ae62718ec0450abaf (diff) | |
download | op-kernel-dev-79f720a751cad613620d0237e3b44f89f4a69181.zip op-kernel-dev-79f720a751cad613620d0237e3b44f89f4a69181.tar.gz |
blk-mq: only run the hardware queue if IO is pending
Currently we are inconsistent in when we decide to run the queue. Using
blk_mq_run_hw_queues() we check if the hctx has pending IO before
running it, but we don't do that from the individual queue run function,
blk_mq_run_hw_queue(). This results in a lot of extra and pointless
queue runs, potentially, on flush requests and (much worse) on tag
starvation situations. This is observable just looking at top output,
with lots of kworkers active. For the !async runs, it just adds to the
CPU overhead of blk-mq.
Move the has-pending check into the run function instead of having
callers do it.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions