]> git.baikalelectronics.ru Git - kernel.git/commit
vmstat: use raw_cpu_ops to avoid false positives on preemption checks
authorChristoph Lameter <cl@linux.com>
Mon, 7 Apr 2014 22:39:43 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:14 +0000 (16:36 -0700)
commitce18e4b6704aa3021a828e976970dc6fa7681f86
treec05e009383b80e79f477a8d4aa6f779bab04f668
parent9dcda25b47863c1874400fbe93b3807d82bdad23
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.

[akpm@linux-foundation.org: Add comment.  Again.]
Signed-off-by: Christoph Lameter <cl@linux.com>
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vmstat.h