xen-netback: transition to CLOSED when removing a VIF
authorDavid Vrabel <[email protected]>
Mon, 7 Oct 2013 12:55:19 +0000 (13:55 +0100)
committerDavid S. Miller <[email protected]>
Tue, 8 Oct 2013 20:15:51 +0000 (16:15 -0400)
commitdc62ccaccfb139d9b04bbc5a2688a4402adbfab3
tree90b274b080f228ea5a58fd5ca17eec4727419503
parent3c01352db3868aab6c6e6402c2cfb781f7755504
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
279f438e36c0a70b23b86d2090aeec50155034a9 (xen-netback: Don't destroy
the netdev until the vif is shut down).

Signed-off-by: David Vrabel <[email protected]>
Cc: Ian Campbell <[email protected]>
Cc: Wei Liu <[email protected]>
Cc: Paul Durrant <[email protected]>
Acked-by: Wei Liu <[email protected]>
Reviewed-by: Paul Durrant <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/xen-netback/xenbus.c