]> 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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 6 Jul 2016 16:13:29 +0000 (12:13 -0400)
commit1b5fa37490912f07fe3aa0a5abd9b07c2f9d0a4f
tree8475b8fa8fc90a838f3eb10af0dcc8229e8dbc7d
parent55aabf0444e1e111d1fe3756f4934ebbf54a14d9
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>
(cherry picked from commit 2a6f71ad99cabe436e70c3f5fcf58072cb3bc07f)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
OraBug: 23585393
drivers/block/xen-blkfront.c