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] Slight rejig avoids grant entry warning message on xm sa

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Slight rejig avoids grant entry warning message on xm save.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 29 Sep 2005 15:46:11 +0000
Delivery-date: Thu, 29 Sep 2005 15:43:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 65882bf339f6607e38bca12e1cdb622419a326be
# Parent  f633c3d0315b49e41b3c6e79085fddfafb0ae2aa
Slight rejig avoids grant entry warning message on xm save.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r f633c3d0315b -r 65882bf339f6 
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Thu Sep 29 
15:25:50 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Thu Sep 29 
15:39:32 2005
@@ -683,8 +683,6 @@
        kfree(info->backend);
        info->backend = NULL;
 
-       blkif_free(info);
-
        return 0;
 }
 
@@ -693,11 +691,12 @@
        struct blkfront_info *info = dev->data;
        int err;
 
-       /* FIXME: Check geometry hasn't changed here... */
+       blkif_free(info);
+
        err = talk_to_backend(dev, info);
-       if (!err) {
+       if (!err)
                blkif_recover(info);
-       }
+
        return err;
 }
 
diff -r f633c3d0315b -r 65882bf339f6 
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Thu Sep 29 
15:25:50 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Thu Sep 29 
15:39:32 2005
@@ -1247,24 +1247,17 @@
 static int netfront_suspend(struct xenbus_device *dev)
 {
        struct netfront_info *info = dev->data;
-
        unregister_xenbus_watch(&info->watch);
        kfree(info->backend);
        info->backend = NULL;
-
+       return 0;
+}
+
+static int netfront_resume(struct xenbus_device *dev)
+{
+       struct netfront_info *info = dev->data;
        netif_free(info);
-
-       return 0;
-}
-
-static int netfront_resume(struct xenbus_device *dev)
-{
-       struct net_private *np = dev->data;
-       int err;
-
-       err = talk_to_backend(dev, np);
-
-       return err;
+       return talk_to_backend(dev, info);
 }
 
 static struct xenbus_driver netfront = {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Slight rejig avoids grant entry warning message on xm save., Xen patchbot -unstable <=