Commit cd735e1
blk-mq: move the blk_mq_hctx_stopped check in __blk_mq_delay_run_hw_queue
For the in-context dispatch, blk_mq_hctx_stopped is alredy checked in
blk_mq_sched_dispatch_requests under blk_mq_run_dispatch_ops() protection.
For the async dispatch case having a check before scheduling the work
still makes sense to avoid needless workqueue scheduling, so just keep it
for that case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230413060651.694656-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent c20a1a2 commit cd735e1
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2223 | 2223 | | |
2224 | 2224 | | |
2225 | 2225 | | |
2226 | | - | |
2227 | | - | |
2228 | | - | |
2229 | 2226 | | |
2230 | 2227 | | |
2231 | 2228 | | |
2232 | 2229 | | |
2233 | 2230 | | |
2234 | 2231 | | |
2235 | 2232 | | |
| 2233 | + | |
| 2234 | + | |
2236 | 2235 | | |
2237 | 2236 | | |
2238 | 2237 | | |
| |||
0 commit comments