Skip to content
Commit 64df3071 authored by Fan Du's avatar Fan Du Committed by Linus Torvalds
Browse files

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: default avatarFan Du <fan.du@windriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5cb0656b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment