locking, percpu counters: introduce separate lock classes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 26 Dec 2008 14:08:55 +0000 (15:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 29 Dec 2008 12:43:00 +0000 (13:43 +0100)
commitea319518ba3de282c13ae1cf4bf2215c5e03e67e
tree72eea2b8e5d8926e95ade18d610d59b13df5dae5
parent00ef9f7348dfd2fc223ec42aceb30836e86b367f
locking, percpu counters: introduce separate lock classes

Impact: fix lockdep false positives

Classify percpu_counter instances similar to regular lock objects --
that is, per instantiation site.

The networking code has increased its use of percpu_counters, which
leads to false positives if they are treated as a single class.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/percpu_counter.h
lib/percpu_counter.c
lib/proportions.c
mm/backing-dev.c