Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
From: Christoph Lameter <hidden>
Date: 2007-08-16 18:48:42
Also in:
lkml, netdev
From: Christoph Lameter <hidden>
Date: 2007-08-16 18:48:42
Also in:
lkml, netdev
On Thu, 16 Aug 2007, Paul Mackerras wrote:
It seems that there could be a lot of places where atomic_t is used in a non-atomic fashion, and that those uses are either buggy, or there is some lock held at the time which guarantees that other CPUs aren't changing the value. In both cases there is no point in using atomic_t; we might as well just use an ordinary int.
The point of atomic_t is to do atomic *changes* to the variable.