lkml.org 
[lkml]   [2008]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.6.25-rc2
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.



\
 
 \ /
  Last update: 2008-02-28 00:35    [W:0.168 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site