vmstat: use raw_cpu_ops to avoid false positives on preemption checks
authorChristoph Lameter <[email protected]>
Mon, 7 Apr 2014 22:39:43 +0000 (15:39 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 Apr 2014 23:36:14 +0000 (16:36 -0700)
commit293b6a4c875c3b49853bff7de99954f49f59aa75
treec05e009383b80e79f477a8d4aa6f779bab04f668
parent88da03a67674bcd6e9ecf18a0a182cf1303056ba
vmstat: use raw_cpu_ops to avoid false positives on preemption checks

vm counters are allowed to be racy.  Use raw_cpu_ops to avoid the
local_irq_disable overhead and to avoid preemption checks which will be
added to the __this_cpu operations.

[[email protected]: Add comment.  Again.]
Signed-off-by: Christoph Lameter <[email protected]>
Reported-by: Sergey Senozhatsky <[email protected]>
Cc: Dave Chinner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/vmstat.h