Skip to content

Commit

Permalink
blk-mq: use helper function to test hw stopped
Browse files Browse the repository at this point in the history
We have introduced helper function blk_mq_hctx_stopped() to test
BLK_MQ_S_STOPPED.

Signed-off-by: Yufen Yu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Yufen Yu authored and axboe committed Oct 9, 2020
1 parent 75e6c00 commit 0841031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0841031

Please sign in to comment.