netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: eilong@broadcom.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 02/34]bnx2x: Barriers for the compiler
Date: Sat, 17 Jan 2009 23:25:45 -0800 (PST)	[thread overview]
Message-ID: <20090117.232545.32388782.davem@davemloft.net> (raw)
In-Reply-To: <1232013057.4971.8.camel@lb-tlvb-eliezer>

From: "Eilon Greenstein" <eilong@broadcom.com>
Date: Thu, 15 Jan 2009 11:50:57 +0200

> On Wed, 2009-01-14 at 13:13 -0800, David Miller wrote:
> > From: "Eilon Greenstein" <eilong@broadcom.com>
> > Date: Wed, 14 Jan 2009 18:42:44 +0200
> > 
> > > To make sure no swapping are made by the compiler, changed HAS_WORK to inline
> > > functions and added all the necessary barriers
> > > 
> > > Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> > 
> > Don't you need cpu memory barriers too?  What if the cpu reorders what
> > you're trying to order using just a compiler barrier?
> > 
> The CPU memory barriers are in place (actually, they needed some fixing,
> but that was in another patch) - this one is just for the compiler and
> after reviewing it again now, I still believe that it is sufficient. I
> need the current executing CPU to take the right decision based on what
> it currently knows - synchronization between CPUs and HW is using CPU
> memory barrier.
> 
> IMHO this patch is correct.

Fair enough, applied.

      reply	other threads:[~2009-01-18  7:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 16:42 [PATCH 02/34]bnx2x: Barriers for the compiler Eilon Greenstein
2009-01-14 21:13 ` David Miller
2009-01-15  9:50   ` Eilon Greenstein
2009-01-18  7:25     ` David Miller [this message]

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=20090117.232545.32388782.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=eilong@broadcom.com \
    --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).