]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: improve warning for running a queue on the wrong CPU
authorJens Axboe <axboe@fb.com>
Wed, 24 Aug 2016 21:38:01 +0000 (15:38 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 24 Aug 2016 21:38:01 +0000 (15:38 -0600)
commitc38410a2726673f727bd944e98ccc07288da7392
treef7da272dc09742028a98b3503ad32bf1f2db3c8d
parentde57a6163a6a5d238f7c3fe68d48a2812dcb0a44
blk-mq: improve warning for running a queue on the wrong CPU

__blk_mq_run_hw_queue() currently warns if we are running the queue on a
CPU that isn't set in its mask. However, this can happen if a CPU is
being offlined, and the workqueue handling will place the work on CPU0
instead. Improve the warning so that it only triggers if the batch cpu
in the hardware queue is currently online.  If it triggers for that
case, then it's indicative of a flow problem in blk-mq, so we want to
retain it for that case.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c