]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Nov 2019 20:18:12 +0000 (17:18 -0300)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:23:12 +0000 (14:23 -0300)
commit7b63db5c59fccb61b27c4dd8464078d0d1b1bf4c
treed8458cff8ec457456d5ada85776dee16662ece3e
parentbccd2117bd75d8845b462db2c83eb459958190f7
blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

BugLink: https://bugs.launchpad.net/bugs/1848739
If we run into blk_mq_request_direct_issue(), when queue is busy, we
don't want to dispatch this request into hctx->dispatch_list, and
what we need to do is to return the queue busy info to caller, so
that caller can deal with it well.

Fixes: 396eaf21ee ("blk-mq: improve DM's blk-mq IO merging via blk_insert_cloned_request feedback")
Reported-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 23d4ee19e789ae3dce3e04bd24e3d1537965475f)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
block/blk-mq.c