Skip to content

Commit

Permalink
Unlock vfsmount_lock in do_umount
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Al Viro <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
J. R. Okajima authored and Al Viro committed Feb 24, 2011
1 parent 2aa1589 commit bf9faa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf9faa2

Please sign in to comment.