]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/namespace.c
[PATCH] lock exclusively in collect_mounts() and drop_collected_mounts()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 22 Mar 2008 20:19:49 +0000 (16:19 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 22 Apr 2008 03:11:09 +0000 (23:11 -0400)
commit1a60a280778ff90270fc7390d9ec102f713a5a29
tree988cb5b1446ecc298aee4771b0768d777165226c
parent6d59e7f582ef1c1988542d0fc3b36d0087b757ce
[PATCH] lock exclusively in collect_mounts() and drop_collected_mounts()

Taking namespace_sem shared there isn't worth the trouble, especially with
vfsmount ID allocation about to be added.  That way we know that umount_tree(),
copy_tree() and clone_mnt() are _always_ serialized by namespace_sem.
umount_tree() still needs vfsmount_lock (it manipulates hash chains, among
other things), but that's a separate story.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c