[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] netback: On transition to XenbusStateClosing we should release



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200584789 0
# Node ID c6e00c01ae69542a5510d7fc81ddfd30c107f088
# Parent  414030b3a3fd1ab240f52d03fcfa296bc55a40a0
netback: On transition to XenbusStateClosing we should release
frontend resources.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/netback/xenbus.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 414030b3a3fd -r c6e00c01ae69 drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Wed Jan 16 13:27:22 2008 +0000
+++ b/drivers/xen/netback/xenbus.c      Thu Jan 17 15:46:29 2008 +0000
@@ -223,10 +223,6 @@ static void frontend_changed(struct xenb
                if (dev->state == XenbusStateClosed) {
                        printk(KERN_INFO "%s: %s: prepare for reconnect\n",
                               __FUNCTION__, dev->nodename);
-                       if (be->netif) {
-                               netif_disconnect(be->netif);
-                               be->netif = NULL;
-                       }
                        xenbus_switch_state(dev, XenbusStateInitWait);
                }
                break;
@@ -241,6 +237,10 @@ static void frontend_changed(struct xenb
                break;
 
        case XenbusStateClosing:
+               if (be->netif) {
+                       netif_disconnect(be->netif);
+                       be->netif = NULL;
+               }
                xenbus_switch_state(dev, XenbusStateClosing);
                break;
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.