]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Jun 2016 14:51:19 +0000 (07:51 -0700)
commit4e80861e955a365f0ed2c467e243c47b58da1170
tree20b230df290b274c79b9160333d2714ae6f41d83
parentb972d5fe032b96138796903aa35aed9d495b9b4f
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.

Orabug: 23340426
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 2a6f71ad99cabe436e70c3f5fcf58072cb3bc07f)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
drivers/block/xen-blkfront.c