From: Frank Blaschka Date: Thu, 12 Jul 2007 10:51:35 +0000 (+0200) Subject: s390: add barriers to qeth driver X-Git-Tag: v2.6.23-rc1~768^2~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ab2927d38536f6d437bdd0d7454b99bf67a48c;p=linux-2.6 s390: add barriers to qeth driver Add barrier to loop where atomic variable is evaluated. Signed-off-by: Frank Blaschka Signed-off-by: Ursula Braun Signed-off-by: Frank Pavlic Signed-off-by: Jeff Garzik --- diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c index 8dca93598e..57f69434fb 100644 --- a/drivers/s390/net/qeth_main.c +++ b/drivers/s390/net/qeth_main.c @@ -1935,6 +1935,7 @@ qeth_send_control_data(struct qeth_card *card, int len, atomic_inc(&reply->received); wake_up(&reply->wait_q); } + cpu_relax(); }; rc = reply->rc; qeth_put_reply(reply);