Subject: [patch 2/2] s390: add barriers to qeth driver

From: [email-masked]
Date: Thu, 12 Jul 2007 09:51:01 +0200

From: Frank Blaschka <[email-masked]>

Add barrier to loop where atomic variable is evaluated.

Signed-off-by: Frank Blaschka <[email-masked]>
Signed-off-by: Ursula Braun <[email-masked]>
Signed-off-by: Frank Pavlic <[email-masked]>
---

 drivers/s390/net/qeth_main.c |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6-uschi/drivers/s390/net/qeth_main.c
===================================================================
--- linux-2.6-uschi.orig/drivers/s390/net/qeth_main.c
+++ linux-2.6-uschi/drivers/s390/net/qeth_main.c
@@ -1935,6 +1935,7 @@ qeth_send_control_data(struct qeth_card 
 			atomic_inc(&reply->received);
 			wake_up(&reply->wait_q);
 		}
+		cpu_relax();
 	};
 	rc = reply->rc;
 	qeth_put_reply(reply);

--