summaryrefslogtreecommitdiff
path: root/security
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 /security
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 'security')
-rw-r--r--security/tomoyo/realpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c
index 18369d497eb8..c5c3c1669cab 100644
--- a/security/tomoyo/realpath.c
+++ b/security/tomoyo/realpath.c
@@ -98,12 +98,12 @@ int tomoyo_realpath_from_path2(struct path *path, char *newname,
root = current->fs->root;
path_get(&root);
read_unlock(&current->fs->lock);
- spin_lock(&vfsmount_lock);
+ vfsmount_read_lock();
if (root.mnt && root.mnt->mnt_ns)
ns_root.mnt = mntget(root.mnt->mnt_ns->root);
if (ns_root.mnt)
ns_root.dentry = dget(ns_root.mnt->mnt_root);
- spin_unlock(&vfsmount_lock);
+ vfsmount_read_unlock();
spin_lock(&dcache_lock);
tmp = ns_root;
sp = __d_path(path, &tmp, newname, newname_len);