提交 0841031a 编写于 作者: Y Yufen Yu 提交者: Jens Axboe

blk-mq: use helper function to test hw stopped

We have introduced helper function blk_mq_hctx_stopped() to test
BLK_MQ_S_STOPPED.
Signed-off-by: NYufen Yu <yuyufen@huawei.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 75e6c00f
...@@ -1807,7 +1807,7 @@ static void blk_mq_run_work_fn(struct work_struct *work) ...@@ -1807,7 +1807,7 @@ static void blk_mq_run_work_fn(struct work_struct *work)
/* /*
* If we are stopped, don't run the queue. * If we are stopped, don't run the queue.
*/ */
if (test_bit(BLK_MQ_S_STOPPED, &hctx->state)) if (blk_mq_hctx_stopped(hctx))
return; return;
__blk_mq_run_hw_queue(hctx); __blk_mq_run_hw_queue(hctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册