]> git.baikalelectronics.ru Git - kernel.git/commit
xen-blkfront: fix resume issues after a migration
authorBob Liu <bob.liu@oracle.com>
Tue, 31 May 2016 08:59:17 +0000 (16:59 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 8 Jun 2016 17:54:46 +0000 (13:54 -0400)
commitddec18520494e3840a76a680e1733c17edbc2994
treecbdd63728027fc17b86025cc6a11353c88ab7819
parentcf51d9a0ad6c1375727a79853c0ac904b7c16239
xen-blkfront: fix resume issues after a migration

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: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c