Re: blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

2018-01-17 Thread Laurence Oberman
On Wed, 2018-01-17 at 23:36 -0500, Mike Snitzer wrote: > On Wed, Jan 17 2018 at 11:06pm -0500, > Ming Lei wrote: > > > 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

Re: [PATCH] blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

2018-01-17 Thread Jens Axboe
On 1/17/18 9:06 PM, Ming Lei wrote: > 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. Thanks for fixing

Re: blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

2018-01-17 Thread Mike Snitzer
On Wed, Jan 17 2018 at 11:06pm -0500, Ming Lei wrote: > 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.

[PATCH] blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy

2018-01-17 Thread Ming Lei
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