]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: return when hctx is stopped in blk_mq_run_work_fn
authorJianchao Wang <jianchao.w.wang@oracle.com>
Mon, 4 Jun 2018 09:03:55 +0000 (17:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Jun 2018 18:10:40 +0000 (12:10 -0600)
commitf612f3342b4f9af27bee50df39a6f60b09c287e2
tree23d9263ad6148a5967e4710a3a228861c6392067
parent5782a4a638300711c61fea056b300ea447f9c012
blk-mq: return when hctx is stopped in blk_mq_run_work_fn

If a hardware queue is stopped, it should not be run again before
explicitly started. Ignore stopped queues in blk_mq_run_work_fn(),
fixing a regression recently introduced when the START_ON_RUN bit
was removed.

Fixes: 7a59d16127bc ("blk-mq: remove blk_mq_delay_queue()")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c