aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2020-10-08 23:26:30 -0400
committerJens Axboe <axboe@kernel.dk>2020-10-09 12:34:06 -0600
commit0841031ab9a8fb2551880c24a8419997b8e834bc (patch)
tree115803c9cd3f810bedbfc2e18642dbdf31d8924e /block
parentblock: use helper function to test queue register (diff)
downloadlinux-dev-0841031ab9a8fb2551880c24a8419997b8e834bc.tar.xz
linux-dev-0841031ab9a8fb2551880c24a8419997b8e834bc.zip
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: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index c5fefd39d0c0..e11ee801ba19 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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 (test_bit(BLK_MQ_S_STOPPED, &hctx->state))
+ if (blk_mq_hctx_stopped(hctx))
return;
__blk_mq_run_hw_queue(hctx);