From: Eric Dumazet <eric.dumazet@gmail.com>
To: Chris Metcalf <cmetcalf@tilera.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] drivers/net/tile/: on-chip network drivers for the tile architecture
Date: Wed, 03 Nov 2010 18:50:22 +0100 [thread overview]
Message-ID: <1288806622.2511.187.camel@edumazet-laptop> (raw)
In-Reply-To: <4CD19DCF.1040709@tilera.com>
Le mercredi 03 novembre 2010 à 13:37 -0400, Chris Metcalf a écrit :
> Stephen, thanks for your feedback!
>
> On 11/3/2010 12:59 PM, Stephen Hemminger wrote:
> > 1. MUST not use volatile, see volatile-considered-harmful.txt
>
> The "harmful" use of volatile is in trying to fake out SMP. Believe me,
> with a 64-core architecture, we know our SMP guidelines. :-) Our use here
> is simply to force the compiler to issue a load, for the side-effect of
> populating the TLB, for example.
>
> However, your response does suggest that simply the syntactic use of
> "volatile" will cause a red flag for readers. I'll move this to an inline
> function in a header with a comment explaining what it's for, and use the
> function instead.
Please read Documentation/volatile-considered-harmful.txt
Then if there is a problem, we can make change to the documentation, but
volatile use in new code is _strictly_ forbidden.
ACCESS_ONCE() is your friend, we might document it in
Documentation/volatile-considered-harmful.txt
next prev parent reply other threads:[~2010-11-03 17:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 21:00 [PATCH] drivers/net/tile/: on-chip network drivers for the tile architecture Chris Metcalf
2010-11-03 16:59 ` Stephen Hemminger
2010-11-03 17:37 ` Chris Metcalf
2010-11-03 17:50 ` Eric Dumazet [this message]
2010-11-03 19:39 ` Chris Metcalf
2010-11-03 20:31 ` Eric Dumazet
2010-11-03 21:04 ` Chris Metcalf
2010-11-01 21:00 ` [PATCH v2] " Chris Metcalf
2010-11-14 7:52 ` Sam Ravnborg
2010-11-15 18:22 ` David Miller
2010-11-15 19:01 ` Chris Metcalf
-- strict thread matches above, loose matches on Subject: below --
2010-11-01 21:00 [PATCH] " Chris Metcalf
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=1288806622.2511.187.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=cmetcalf@tilera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/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