• Ian Kent's avatar
    autofs - dont hold spin lock over direct mount expire · 1c4344a5
    Ian Kent authored
    Commit 7cbdb4a2 altered the autofs indirect mount expire to
    not hold a spin lock during the expire check.
    
    The direct mount expire needs the same treatment because to
    make autofs expires namespace aware may_umount_tree() needs to
    to use a similar method to may_umount() when checking if a mount
    tree is in use.
    
    This means may_umount_tree() will end up taking the namespace_sem
    for the check so the autofs direct mount expire won't be allowed
    to hold a spin lock over the check.
    Signed-off-by: default avatarIan Kent <raven@themaw.net>
    Cc: Al Viro <viro@ZenIV.linux.org.uk>
    Cc: Eric W. Biederman <ebiederm@xmission.com>
    Cc: Omar Sandoval <osandov@osandov.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    1c4344a5
expire.c 14.5 KB