summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-01-29 15:38:19 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:28 +0200
commitf0a176c5482950a40ac31113816b981d4fe6069c (patch)
treea48a5c340310bf98b4604bb6e669e82a73388eb3 /kernel
parent787deaa77c09c3746dd2b998997109f2463190fa (diff)
downloadlwn-f0a176c5482950a40ac31113816b981d4fe6069c.tar.gz
lwn-f0a176c5482950a40ac31113816b981d4fe6069c.zip
fs-vfsmount_lock-scale
Use a brlock for the vfsmount lock. 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/audit_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c
index 4b05bd9479db..6274327fd913 100644
--- a/kernel/audit_tree.c
+++ b/kernel/audit_tree.c
@@ -761,15 +761,15 @@ int audit_tag_tree(char *old, char *new)
continue;
}
- spin_lock(&vfsmount_lock);
+ vfsmount_read_lock();
if (!is_under(mnt, dentry, &path)) {
- spin_unlock(&vfsmount_lock);
+ vfsmount_read_unlock();
path_put(&path);
put_tree(tree);
mutex_lock(&audit_filter_mutex);
continue;
}
- spin_unlock(&vfsmount_lock);
+ vfsmount_read_unlock();
path_put(&path);
list_for_each_entry(p, &list, mnt_list) {