]> git.baikalelectronics.ru Git - 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>
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)
commit1b8036bb735e9cf8ac0a673db1c5696dabc421b3
treece2feb7137e252bc89dfcd3c00f2f99ea5e0f15f
parent8e15b4284c7a573fdec7e60aca6221b4c2394ea7
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: 525996e339 ("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