blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy
authorMing Lei <ming.lei@redhat.com>
Thu, 18 Jan 2018 04:06:59 +0000 (12:06 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Jan 2018 04:38:52 +0000 (21:38 -0700)
commit23d4ee19e789ae3dce3e04bd24e3d1537965475f
treece2feb7137e252bc89dfcd3c00f2f99ea5e0f15f
parentde99a346884f019387230bc549de74456daca248
blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

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>
block/blk-mq.c