summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2010-02-22 15:56:56 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:58 +0200
commit3f2ef0d48b33d3423f99077a6efd6f4eea3ac090 (patch)
tree8ddea732a3bc0458dc03ff7698df2007c9e8b3a9
parent52887d41fce67b0e652885d4ef7a5bfa7e5b29e0 (diff)
downloadlwn-3f2ef0d48b33d3423f99077a6efd6f4eea3ac090.tar.gz
lwn-3f2ef0d48b33d3423f99077a6efd6f4eea3ac090.zip
Fixup rt hack for mnt_want_write
The rt hack in mnt_want_write needs to be changed to work with Nick's VFS patches. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 642d0025c027..83b0370b1acb 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -377,8 +377,8 @@ int mnt_want_write(struct vfsmount *mnt)
* held by mnt_make_readonly(). Works on !RT as well.
*/
while (mnt->mnt_flags & MNT_WRITE_HOLD) {
- spin_lock(&vfsmount_lock);
- spin_unlock(&vfsmount_lock);
+ vfsmount_write_lock();
+ vfsmount_write_unlock();
}
/*
* After the slowpath clears MNT_WRITE_HOLD, mnt_is_readonly will