diff options
author | Yufen Yu <yuyufen@huawei.com> | 2020-10-08 23:26:30 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-09 12:34:06 -0600 |
commit | 0841031ab9a8fb2551880c24a8419997b8e834bc (patch) | |
tree | 115803c9cd3f810bedbfc2e18642dbdf31d8924e /block/blk-mq.c | |
parent | 75e6c00fc75c53577bfc4831d909162c56e799ce (diff) | |
download | linux-0841031ab9a8fb2551880c24a8419997b8e834bc.tar.bz2 |
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/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
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); |