cifs: Add new parameter "acregmax" for distinct file and directory metadata timeout
authorSteve French <stfrench@microsoft.com>
Wed, 24 Feb 2021 18:12:53 +0000 (12:12 -0600)
committerSteve French <stfrench@microsoft.com>
Thu, 25 Feb 2021 17:47:49 +0000 (11:47 -0600)
commit5780464614f6abe6026f00cf5a0777aa453ba450
tree9b5b9d21d8b36bf14043b82dba274c7aed8db477
parentddaf6d4a9253939036fa70d71534e482ee7413f6
cifs: Add new parameter "acregmax" for distinct file and directory metadata timeout

The new optional mount parameter "acregmax" allows a different
timeout for file metadata ("acdirmax" now allows controlling timeout
for directory metadata).  Setting "actimeo" still works as before,
and changes timeout for both files and directories, but
specifying "acregmax" or "acdirmax" allows overriding the
default more granularly which can be a big performance benefit
on some workloads. "acregmax" is already used by NFS as a mount
parameter (albeit with a larger default and thus looser caching).

Suggested-by: Tom Talpey <tom@talpey.com>
Reviewed-By: Tom Talpey <tom@talpey.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c
fs/cifs/connect.c
fs/cifs/fs_context.c
fs/cifs/fs_context.h
fs/cifs/inode.c