From: J. R. Okajima Date: Wed, 23 Feb 2011 07:59:49 +0000 (+0900) Subject: Unlock vfsmount_lock in do_umount X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bf9faa2aa30e2ebf30287536712ed2717bb47002;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Al Viro Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index 7b0b95371696..d1edf26025dc 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -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);