]> git.baikalelectronics.ru Git - kernel.git/commit
autofs: add strictexpire mount option
authorIan Kent <raven@themaw.net>
Thu, 3 Jan 2019 23:27:43 +0000 (15:27 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jan 2019 21:13:47 +0000 (13:13 -0800)
commit24f0e478d149285b830858b2e83488d0f72b0036
treed258dc7d65ef49d04090f85529886e734fe29d78
parente0433f746e1e06db981b369032e320e9d6b24b77
autofs: add strictexpire mount option

Commit f490f322b571 ("autofs: take more care to not update last_used on
path walk") helped to (partially) resolve a problem where automounts
were not expiring due to aggressive accesses from user space.

This patch was later reverted because, for very large environments, it
meant more mount requests from clients and when there are a lot of
clients this caused a fairly significant increase in server load.

But there is a need for both types of expire check, depending on use
case, so add a mount option to allow for strict update of last use of
autofs dentrys (which just means not updating the last use on path walk
access).

Link: http://lkml.kernel.org/r/154296973880.9889.14085372741514507967.stgit@pluto-themaw-net
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs/autofs_i.h
fs/autofs/inode.c
fs/autofs/root.c
include/uapi/linux/auto_fs.h