Unlock vfsmount_lock in do_umount
authorJ. R. Okajima <hooanon05@yahoo.co.jp>
Wed, 23 Feb 2011 07:59:49 +0000 (16:59 +0900)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Feb 2011 07:10:57 +0000 (02:10 -0500)
By the commit
b3e19d9 2011-01-07 fs: scale mntget/mntput
vfsmount_lock was introduced around testing mnt_count.
Fix the mis-typed 'unlock'

Signed-off-by: J. R. Okajima <hooanon05@yahoo.co.jp>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c

index 7b0b95371696117494af637af71c24d6752a3939..d1edf26025dcb018ec434309aacc839f9dbf2cfb 100644 (file)
@@ -1244,7 +1244,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
                 */
                br_write_lock(vfsmount_lock);
                if (mnt_get_count(mnt) != 2) {
-                       br_write_lock(vfsmount_lock);
+                       br_write_unlock(vfsmount_lock);
                        return -EBUSY;
                }
                br_write_unlock(vfsmount_lock);