]> git.baikalelectronics.ru Git - kernel.git/commit
lib/percpu_counter.c: __this_cpu_write() doesn't need to be protected by spinlock
authorFan Du <fan.du@windriver.com>
Wed, 3 Jul 2013 22:05:19 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:43 +0000 (16:07 -0700)
commit5dd1eb76811b688bcb7504dca689432e400da819
treed7f8de21c425465f6e790c5de74d2dc54214b9e3
parentf0f01adf5f2865581d94eadc00a01ad83ca66b55
lib/percpu_counter.c: __this_cpu_write() doesn't need to be protected by spinlock

__this_cpu_write doesn't need to be protected by spinlock, AS we are doing
per cpu write with preempt disabled.  And another reason to remove
__this_cpu_write outside of spinlock: __percpu_counter_sum is not an
accurate counter.

Signed-off-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/percpu_counter.c