• Bob Liu's avatar
    xen-blkfront: fix resume issues after a migration · 2a6f71ad
    Bob Liu authored
    After a migrate to another host (which may not have multiqueue
    support), the number of rings (block hardware queues)
    may be changed and the ring info structure will also be reallocated.
    
    This patch fixes two related bugs:
     * call blk_mq_update_nr_hw_queues() to make blk-core know the number
       of hardware queues have been changed.
     * Don't store rinfo pointer to hctx->driver_data, because rinfo may be
       reallocated so use hctx->queue_num to get the rinfo structure instead.
    Signed-off-by: default avatarBob Liu <bob.liu@oracle.com>
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    2a6f71ad
xen-blkfront.c 72.2 KB