Skip to content

Commit 0841031

Browse files
Yufen Yuaxboe
authored andcommitted
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>
1 parent 75e6c00 commit 0841031

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/blk-mq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ static void blk_mq_run_work_fn(struct work_struct *work)
18071807
/*
18081808
* If we are stopped, don't run the queue.
18091809
*/
1810-
if (test_bit(BLK_MQ_S_STOPPED, &hctx->state))
1810+
if (blk_mq_hctx_stopped(hctx))
18111811
return;
18121812

18131813
__blk_mq_run_hw_queue(hctx);

0 commit comments

Comments
 (0)