]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: blk_mq_start_hw_queue() should use blk_mq_run_hw_queue()
authorJens Axboe <axboe@fb.com>
Wed, 25 Jun 2014 14:22:34 +0000 (08:22 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 25 Jun 2014 14:22:34 +0000 (08:22 -0600)
commit9d2062a46bf96d5a31e89871ec58b9f08723c4a5
tree870368a850b6ebb37e30c3d4407649f30f2d4741
parent7182e0969ada2f79b31fbf0838894f852a9ba78b
blk-mq: blk_mq_start_hw_queue() should use blk_mq_run_hw_queue()

Currently it calls __blk_mq_run_hw_queue(), which depends on the
CPU placement being correct. This means it's not possible to call
blk_mq_start_hw_queues(q) from a context that is correct for all
queues, leading to triggering the

WARN_ON(!cpumask_test_cpu(raw_smp_processor_id(), hctx->cpumask));

in __blk_mq_run_hw_queue().

Reported-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c