aboutsummaryrefslogtreecommitdiffstats
path: root/mm/backing-dev.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-12-26 09:08:55 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-29 07:43:00 -0500
commitea319518ba3de282c13ae1cf4bf2215c5e03e67e (patch)
tree72eea2b8e5d8926e95ade18d610d59b13df5dae5 /mm/backing-dev.c
parent00ef9f7348dfd2fc223ec42aceb30836e86b367f (diff)
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>
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r--mm/backing-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index f2e574dbc300..f3b125857827 100644
--- a/mm/backing-dev.c
+++ b/mm/backing-dev.c
@@ -220,7 +220,7 @@ int bdi_init(struct backing_dev_info *bdi)
220 bdi->max_prop_frac = PROP_FRAC_BASE; 220 bdi->max_prop_frac = PROP_FRAC_BASE;
221 221
222 for (i = 0; i < NR_BDI_STAT_ITEMS; i++) { 222 for (i = 0; i < NR_BDI_STAT_ITEMS; i++) {
223 err = percpu_counter_init_irq(&bdi->bdi_stat[i], 0); 223 err = percpu_counter_init(&bdi->bdi_stat[i], 0);
224 if (err) 224 if (err)
225 goto err; 225 goto err;
226 } 226 }