• J
    blk-mq: fix potential stall during CPU unplug with IO pending · bccb5f7c
    Jens Axboe 提交于
    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: NJens Axboe <axboe@fb.com>
    bccb5f7c
blk-mq.c 33.4 KB