]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
xen/blkback: Free resources if connect_ring failed.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 25 Nov 2015 18:20:14 +0000 (13:20 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 30 Nov 2015 21:28:01 +0000 (16:28 -0500)
commit751f72059b70832febcf5dbd5737462d87aec863
treecb84d48a445a0ad7384b4b17783227c34ea1abd7
parentdc097289b70c75a0bb101fb3d713f01e6d539db2
xen/blkback: Free resources if connect_ring failed.

With the multi-queue support we could fail at setting up
some of the rings and fail the connection. That meant that
all resources tied to rings[0..n-1] (where n is the ring
that failed to be setup). Eventually the frontend will switch
to the states and we will call xen_blkif_disconnect.

However we do not want to be at the mercy of the frontend
deciding when to change states. This allows us to do the
cleanup right away and freeing resources.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/xenbus.c