Re: [PATCH v5 02/12] blk-mq: fix direct issue

2017-06-06 Thread Ming Lei
On Tue, Jun 06, 2017 at 04:02:52PM +, Bart Van Assche wrote: > On Tue, 2017-06-06 at 23:22 +0800, Ming Lei wrote: > > If queue is stopped, we shouldn't dispatch request into driver and > > hardware, unfortunately the check is removed in bd166ef183c2(blk-mq-sched: > > add framework for MQ

Re: [PATCH v5 02/12] blk-mq: fix direct issue

2017-06-06 Thread Bart Van Assche
On Tue, 2017-06-06 at 23:22 +0800, Ming Lei wrote: > If queue is stopped, we shouldn't dispatch request into driver and > hardware, unfortunately the check is removed in bd166ef183c2(blk-mq-sched: > add framework for MQ capable IO schedulers). > > This patch fixes the issue by moving the check

[PATCH v5 02/12] blk-mq: fix direct issue

2017-06-06 Thread Ming Lei
If queue is stopped, we shouldn't dispatch request into driver and hardware, unfortunately the check is removed in bd166ef183c2(blk-mq-sched: add framework for MQ capable IO schedulers). This patch fixes the issue by moving the check back into __blk_mq_try_issue_directly(). This patch fixes