> 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.