diff options
author | Jens Axboe <axboe@fb.com> | 2014-04-04 21:34:48 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-07 08:17:18 -0600 |
commit | bccb5f7c8bdfe460d95f986c6edf2e75d8052897 (patch) | |
tree | 7c745e10cab2c6cd91dbe2d8664601dda6d89a68 /block/blk-mq-cpu.c | |
parent | 60b0ea120c80cba1cf5fe5ae82a35b1179263de3 (diff) |
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: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-cpu.c')
0 files changed, 0 insertions, 0 deletions