ia64/xen-unstable

changeset 7062:811559fb02ab

xenbus_transaction_end() returns negative error code.
Therefore need to test for -EAGAIN (not EAGAIN).

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Sep 26 16:31:33 2005 +0100 (2005-09-26)
parents 5ea81e640509
children ef9591d03fdd 8c2aa0878927
files linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c	Sun Sep 25 11:47:22 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c	Mon Sep 26 16:31:33 2005 +0100
     1.3 @@ -121,7 +121,7 @@ again:
     1.4  	}
     1.5  
     1.6  	err = xenbus_transaction_end(0);
     1.7 -	if (err == EAGAIN)
     1.8 +	if (err == -EAGAIN)
     1.9  		goto again;
    1.10  	if (err) {
    1.11  		xenbus_dev_error(be->dev, err, "ending transaction",
     2.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Sun Sep 25 11:47:22 2005 +0100
     2.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Mon Sep 26 16:31:33 2005 +0100
     2.3 @@ -604,7 +604,7 @@ again:
     2.4  
     2.5  	err = xenbus_transaction_end(0);
     2.6  	if (err) {
     2.7 -		if (err == EAGAIN)
     2.8 +		if (err == -EAGAIN)
     2.9  			goto again;
    2.10  		xenbus_dev_error(dev, err, "completing transaction");
    2.11  		goto destroy_blkring;
     3.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Sun Sep 25 11:47:22 2005 +0100
     3.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Mon Sep 26 16:31:33 2005 +0100
     3.3 @@ -1161,7 +1161,7 @@ again:
     3.4  
     3.5  	err = xenbus_transaction_end(0);
     3.6  	if (err) {
     3.7 -		if (err == EAGAIN)
     3.8 +		if (err == -EAGAIN)
     3.9  			goto again;
    3.10  		xenbus_dev_error(dev, err, "completing transaction");
    3.11  		goto destroy_ring;
     4.1 --- a/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c	Sun Sep 25 11:47:22 2005 +0100
     4.2 +++ b/linux-2.6-xen-sparse/drivers/xen/tpmback/xenbus.c	Mon Sep 26 16:31:33 2005 +0100
     4.3 @@ -129,7 +129,7 @@ again:
     4.4  	}
     4.5  
     4.6  	err = xenbus_transaction_end(0);
     4.7 -	if (err == EAGAIN)
     4.8 +	if (err == -EAGAIN)
     4.9  		goto again;
    4.10  	if (err) {
    4.11  		xenbus_dev_error(be->dev, err, "end of transaction");
     5.1 --- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c	Sun Sep 25 11:47:22 2005 +0100
     5.2 +++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c	Mon Sep 26 16:31:33 2005 +0100
     5.3 @@ -364,7 +364,7 @@ again:
     5.4  	}
     5.5  
     5.6  	err = xenbus_transaction_end(0);
     5.7 -	if (err == EAGAIN)
     5.8 +	if (err == -EAGAIN)
     5.9  		goto again;
    5.10  	if (err) {
    5.11  		xenbus_dev_error(dev, err, "completing transaction");