]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: insert request not through ->queue_rq into sw/scheduler queue
authorMing Lei <ming.lei@redhat.com>
Tue, 18 Aug 2020 09:07:28 +0000 (17:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Aug 2020 23:09:22 +0000 (17:09 -0600)
commitd46cd6c50eb4736f67efe39b94a5a94371a32156
tree88cd539313001b0836078bb4d0fecf87f01b41f7
parentf48282c009d086ac0aeaf68ce1a342f9c7724481
blk-mq: insert request not through ->queue_rq into sw/scheduler queue

85dbe6d775b2 ("blk-mq: punt failed direct issue to dispatch list") supposed
to add request which has been through ->queue_rq() to the hw queue dispatch
list, however it adds request running out of budget or driver tag to hw queue
too. This way basically bypasses request merge, and causes too many request
dispatched to LLD, and system% is unnecessary increased.

Fixes this issue by adding request not through ->queue_rq into sw/scheduler
queue, and this way is safe because no ->queue_rq is called on this request
yet.

High %system can be observed on Azure storvsc device, and even soft lock
is observed. This patch reduces %system during heavy sequential IO,
meantime decreases soft lockup risk.

Fixes: 85dbe6d775b2 ("blk-mq: punt failed direct issue to dispatch list")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c