Re: Linux 2.6.25-rc2
From: Christoph Lameter
Date: Wed Feb 27 2008 - 18:33:05 EST
On Tue, 19 Feb 2008, Mathieu Desnoyers wrote:
> incrementing the variable with a "++" when interrupts are not disabled.
> It's not an atomic add and it's racy. The code within stat() does
> exactly this.
Yes but that is only for used for statistics which can be racy. Note that
the VM event statistics also can be racy.
--
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/