]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: transition to CLOSED when removing a VIF
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 7 Oct 2013 12:55:19 +0000 (13:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Oct 2013 20:15:51 +0000 (16:15 -0400)
commit4a08f98317c8187540f67f859289c1390d80cb21
tree90b274b080f228ea5a58fd5ca17eec4727419503
parent1e86131ebb49969f35aa90c01bf3dfa906f6836e
xen-netback: transition to CLOSED when removing a VIF

If a guest is destroyed without transitioning its frontend to CLOSED,
the domain becomes a zombie as netback was not grant unmapping the
shared rings.

When removing a VIF, transition the backend to CLOSED so the VIF is
disconnected if necessary (which will unmap the shared rings etc).

This fixes a regression introduced by
6dccaef708f9ef3ca980406a65dcef6d053c7dcf (xen-netback: Don't destroy
the netdev until the vif is shut down).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Paul Durrant <Paul.Durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c