]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:27:20 +0000 (22:27 +0200)
commit89b7cb684307a1fa8abf2b86a11ffccbbac1ac00
tree6bf881600654879d6002652503691b2c05b206c3
parent9878a1019d2203c08bab529dcc4a464350dbb99a
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>
(cherry picked from commit 2d0382fac17cef20d507a0211b82e0942b2ab271)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/block/xen-blkback/xenbus.c