Skip to content
Commit bccb5f7c authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: fix potential stall during CPU unplug with IO pending



When a CPU is unplugged, we move the blk_mq_ctx request entries
to the current queue. The current code forgets to remap the
blk_mq_hw_ctx before marking the software context pending,
which breaks if old-cpu and new-cpu don't map to the same
hardware queue.

Additionally, if we mark entries as pending in the new
hardware queue, then make sure we schedule it for running.
Otherwise request could be sitting there until someone else
queues IO for that hardware queue.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 60b0ea12
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment