xen/blkfront: realloc ring info in blkif_resume
authorBob Liu <bob.liu@oracle.com>
Wed, 25 Nov 2015 22:52:55 +0000 (17:52 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 30 Jan 2016 03:02:34 +0000 (22:02 -0500)
commit3db70a853202c252a8ebefa71ccb088ad149cdd2
tree0c470a308daebce555d83fa1dc48805c43c57dec
parentc31ecf6c126dbc7f30234eaf6c4a079649a38de7
xen/blkfront: realloc ring info in blkif_resume

Need to reallocate ring info in the resume path, because info->rinfo was freed
in blkif_free(). And 'multi-queue-max-queues' backend reports may have been
changed.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Reported-and-Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c