WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] netback: On transition to XenbusState

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] netback: On transition to XenbusStateClosing we should release
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Jan 2008 15:20:43 -0800
Delivery-date: Thu, 17 Jan 2008 15:22:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] netback: On transition to XenbusStateClosing we should release, Xen patchbot-linux-2.6.18-xen <=