netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ursula.Braun.braunu@de.ibm.com
To: jgarzik@pobox.com, netdev@vger.kernel.org, linux-s390@vger.kernel.org
Cc: Frank Blaschka <frank.blaschka@de.ibm.com>,
	Frank Pavlic <fpavlic@de.ibm.com>
Subject: [patch 2/2] s390: add barriers to qeth driver
Date: Thu, 12 Jul 2007 09:51:01 +0200	[thread overview]
Message-ID: <20070712075327.445441000@linux.vnet.ibm.com> (raw)
In-Reply-To: 20070712075059.579991000@linux.vnet.ibm.com

[-- Attachment #1: 703-qeth-barriers.diff --]
[-- Type: text/plain, Size: 763 bytes --]

From: Frank Blaschka <frank.blaschka@de.ibm.com>

Add barrier to loop where atomic variable is evaluated.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Ursula Braun <braunu@de.ibm.com>
Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com>
---

 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);

-- 

  parent reply	other threads:[~2007-07-12  7:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12  7:50 [patch 0/2] qeth patches for 2.6.23 Ursula.Braun.braunu
2007-07-12  7:51 ` [patch 1/2] s390: scatter-gather for inbound traffic in qeth driver Ursula.Braun.braunu
2007-07-12  7:51 ` Ursula.Braun.braunu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-12 10:51 [patch 0/2] qeth patches for 2.6.23 Ursula Braun
2007-07-12 10:51 ` [patch 2/2] s390: add barriers to qeth driver Ursula Braun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070712075327.445441000@linux.vnet.ibm.com \
    --to=ursula.braun.braunu@de.ibm.com \
    --cc=fpavlic@de.ibm.com \
    --cc=frank.blaschka@de.ibm.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).