> > > > No it does not have any volatile semantics. atomic_dec() can be
> > > > reordered
> > > > at will by the compiler within the current basic unit if you do not add
> > > > a
> > > > barrier.
> > >
> > > "volatile" has nothing to do with reordering.
> >
> > If you're talking of "volatile" the type-qualifier keyword, then
> >
http://lkml.org/lkml/2007/8/16/231 (and sub-thread below it) shows
> > otherwise.
>
> I'm not sure what in that mail you mean, but anyway...
>
> Yes, of course, the fact that "volatile" creates a side effect
> prevents certain things from being reordered wrt the atomic_dec();
> but the atomic_dec() has a side effect *already* so the volatile
> doesn't change anything.