Revision 38d78e587d4960d0db94add518d27ee74bad2301 authored by Vladimir Davydov on 22 March 2013, 22:04:51 UTC, committed by Linus Torvalds on 22 March 2013, 23:41:21 UTC
mnt_drop_write() must be called only if mnt_want_write() succeeded, otherwise the mnt_writers counter will diverge. mnt_writers counters are used to check if remounting FS as read-only is OK, so after an extra mnt_drop_write() call, it would be impossible to remount mqueue FS as read-only. Besides, on umount a warning would be printed like this one: ===================================== [ BUG: bad unlock balance detected! ] 3.9.0-rc3 #5 Not tainted ------------------------------------- a.out/12486 is trying to release lock (sb_writers) at: mnt_drop_write+0x1f/0x30 but there are no more locks to release! Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Cc: Doug Ledford <dledford@redhat.com> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ca4b3f3
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 907 bytes |
Makefile | -rw-r--r-- | 268 bytes |
acl.c | -rw-r--r-- | 8.9 KB |
acl.h | -rw-r--r-- | 1.7 KB |
cache.c | -rw-r--r-- | 10.3 KB |
cache.h | -rw-r--r-- | 4.1 KB |
fid.c | -rw-r--r-- | 7.2 KB |
fid.h | -rw-r--r-- | 1.0 KB |
v9fs.c | -rw-r--r-- | 14.5 KB |
v9fs.h | -rw-r--r-- | 7.3 KB |
v9fs_vfs.h | -rw-r--r-- | 3.7 KB |
vfs_addr.c | -rw-r--r-- | 8.2 KB |
vfs_dentry.c | -rw-r--r-- | 3.4 KB |
vfs_dir.c | -rw-r--r-- | 6.0 KB |
vfs_file.c | -rw-r--r-- | 18.2 KB |
vfs_inode.c | -rw-r--r-- | 34.3 KB |
vfs_inode_dotl.c | -rw-r--r-- | 25.3 KB |
vfs_super.c | -rw-r--r-- | 8.6 KB |
xattr.c | -rw-r--r-- | 4.4 KB |
xattr.h | -rw-r--r-- | 1.3 KB |
xattr_user.c | -rw-r--r-- | 2.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...