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] xenbus_transaction_end() returns negative error code.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] xenbus_transaction_end() returns negative error code.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Sep 2005 15:46:10 +0000
Delivery-date: Mon, 26 Sep 2005 15:43:44 +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 811559fb02ab1e1c5a7731895bd57ca7f9d6dbfe
# Parent  5ea81e6405097b7ac25901ecdcd5fb19475508d8
xenbus_transaction_end() returns negative error code.
Therefore need to test for -EAGAIN (not EAGAIN).

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 5ea81e640509 -r 811559fb02ab 
linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Sun Sep 25 10:47:22 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Mon Sep 26 15:31:33 2005
@@ -121,7 +121,7 @@
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(be->dev, err, "ending transaction",
diff -r 5ea81e640509 -r 811559fb02ab 
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Sun Sep 25 
10:47:22 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Mon Sep 26 
15:31:33 2005
@@ -604,7 +604,7 @@
 
        err = xenbus_transaction_end(0);
        if (err) {
-               if (err == EAGAIN)
+               if (err == -EAGAIN)
                        goto again;
                xenbus_dev_error(dev, err, "completing transaction");
                goto destroy_blkring;
diff -r 5ea81e640509 -r 811559fb02ab 
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Sun Sep 25 
10:47:22 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c      Mon Sep 26 
15:31:33 2005
@@ -1161,7 +1161,7 @@
 
        err = xenbus_transaction_end(0);
        if (err) {
-               if (err == EAGAIN)
+               if (err == -EAGAIN)
                        goto again;
                xenbus_dev_error(dev, err, "completing transaction");
                goto destroy_ring;
diff -r 5ea81e640509 -r 811559fb02ab 
linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c Sun Sep 25 10:47:22 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c Mon Sep 26 15:31:33 2005
@@ -129,7 +129,7 @@
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(be->dev, err, "end of transaction");
diff -r 5ea81e640509 -r 811559fb02ab 
linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c      Sun Sep 25 
10:47:22 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c      Mon Sep 26 
15:31:33 2005
@@ -364,7 +364,7 @@
        }
 
        err = xenbus_transaction_end(0);
-       if (err == EAGAIN)
+       if (err == -EAGAIN)
                goto again;
        if (err) {
                xenbus_dev_error(dev, err, "completing transaction");

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] xenbus_transaction_end() returns negative error code., Xen patchbot -unstable <=