• R
    [PATCH] umount_tree() locking change · 70fbcdf4
    Ram Pai 提交于
    umount is done under the protection of the namespace semaphore.  This
    can lead to intresting deadlocks when the last reference to a mount is
    released, if filesystem code is in sufficiently nasty state.
    
    This collects all the to-be-released-mounts and releases them after
    releasing the namespace semaphore.  That both reduces the time we are
    holding namespace semaphore and gets the things more robust.
    
    Idea proposed by Al Viro.
    Signed-off-by: NRam Pai <linuxram@us.ibm.com>
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    70fbcdf4
namespace.c 36.5 KB