[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] xenbus_transaction_end() returns negative error code.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |