]> 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)
commitf74c82c0ed0df9a7ccccad9b768a5bf25e4e89d9
treecbdd63728027fc17b86025cc6a11353c88ab7819
parent4c376e211f4b178fdedf635f1ed4833e0144e014
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