Skip to content

Commit bf9faa2

Browse files
J. R. OkajimaAl Viro
authored andcommitted
Unlock vfsmount_lock in do_umount
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>
1 parent 2aa1589 commit bf9faa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/namespace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
12441244
*/
12451245
br_write_lock(vfsmount_lock);
12461246
if (mnt_get_count(mnt) != 2) {
1247-
br_write_lock(vfsmount_lock);
1247+
br_write_unlock(vfsmount_lock);
12481248
return -EBUSY;
12491249
}
12501250
br_write_unlock(vfsmount_lock);

0 commit comments

Comments
 (0)