• Ian Kent's avatar
    [PATCH] autofs4: expire mounts that hold no (extra) references only · e0a7aae9
    Ian Kent authored
    Alter the expire semantics that define how "busyness" is determined.
    Currently a last_used counter is updated on every revalidate from processes
    other than the mount owner process group.
    
    This patch changes that so that an expire candidate is busy only if it has a
    reference count greater than the expected minimum, such as when there is an
    open file or working directory in use.
    
    This method is the only way that busyness can be established for direct mounts
    within the new implementation.  For consistency the expire semantic is made
    the same for all mounts.
    
    A side effect of the patch is that mounts which remain mounted unessessarily
    in the presence of some GUI programs that scan the filesystem should now
    expire.
    Signed-off-by: default avatarIan Kent <raven@themaw.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e0a7aae9
root.c 20.7 KB