Re: [PATCH 0/24] make atomic_read() behave consistently across allarchitectures

From: Christoph Lameter
Date: Wed Aug 15 2007 - 15:59:33 EST


On Wed, 15 Aug 2007, Stefan Richter wrote:

> LDD3 says on page 125: "The following operations are defined for the
> type [atomic_t] and are guaranteed to be atomic with respect to all
> processors of an SMP computer."
>
> Doesn't "atomic WRT all processors" require volatility?

Atomic operations only require exclusive access to the cacheline while the
value is modified.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/