summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-01-29 15:38:21 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:31 +0200
commit5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e (patch)
treeb216db850b878a1c2a3bcb3d29265efc9a73b927 /kernel
parent0bce328eda17e71b1e027bc867bef7ec08360c3d (diff)
downloadlwn-5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e.tar.gz
lwn-5c0eb5cec064ce26ffcd0cdd684c9b6dd7c9074e.zip
fs-dcache-scale-d_count
Make d_count non-atomic and protect it with d_lock. This allows us to ensure a 0 refcount dentry remains 0 without dcache_lock. It is also fairly natural when we start protecting many other dentry members with d_lock. XXX: This patch does not boot on its own Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 11a8b34cfae0..2524e5d657e2 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -3164,9 +3164,7 @@ again:
list_del(&cgrp->sibling);
cgroup_unlock_hierarchy(cgrp->root);
- spin_lock(&cgrp->dentry->d_lock);
d = dget(cgrp->dentry);
- spin_unlock(&d->d_lock);
cgroup_d_remove_dir(d);
dput(d);