public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Christopher Friesen <cfriesen@nortel.com>
Cc: Vadim Lobanov <vlobanov@speakeasy.net>,
	linux-kernel@vger.kernel.org, tom.anderl@gmail.com
Subject: Re: [OT] volatile keyword
Date: Fri, 26 Aug 2005 16:39:58 +0100	[thread overview]
Message-ID: <1125070798.4958.99.camel@localhost.localdomain> (raw)
In-Reply-To: <430E37A0.1000304@nortel.com>

On Iau, 2005-08-25 at 15:26 -0600, Christopher Friesen wrote:
> > do
> >     expires = timr->it_timer.expires;
> > while ((volatile long) (timr->it_timer.expires) != expires);
> > 
> > Seems it's casting the value, not the pointer.
> 
> Someone else will have to give the definitive answer, but it looks 
> suspicious to me...

It really ought to be using rmb() in this case not volatile casting

Alan


  reply	other threads:[~2005-08-26 15:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-25 20:44 [OT] volatile keyword Vadim Lobanov
2005-08-25 20:57 ` Christopher Friesen
2005-08-25 21:16   ` Vadim Lobanov
2005-08-25 21:26     ` Christopher Friesen
2005-08-26 15:39       ` Alan Cox [this message]
2005-08-26  7:20 ` Paolo Ornati

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=1125070798.4958.99.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=cfriesen@nortel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom.anderl@gmail.com \
    --cc=vlobanov@speakeasy.net \
    /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