diff options
author | Steve French <stfrench@microsoft.com> | 2021-02-24 19:12:53 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-02-25 18:47:49 +0100 |
commit | 5780464614f6abe6026f00cf5a0777aa453ba450 (patch) | |
tree | 9b5b9d21d8b36bf14043b82dba274c7aed8db477 /fs/cifs/connect.c | |
parent | cifs: convert revalidate of directories to using directory metadata cache tim... (diff) | |
download | linux-5780464614f6abe6026f00cf5a0777aa453ba450.tar.xz linux-5780464614f6abe6026f00cf5a0777aa453ba450.zip |
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>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index a9dc39aee9f4..9ecd8098c2b6 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2276,7 +2276,7 @@ compare_mount_options(struct super_block *sb, struct cifs_mnt_data *mnt_data) if (strcmp(old->local_nls->charset, new->local_nls->charset)) return 0; - if (old->ctx->actimeo != new->ctx->actimeo) + if (old->ctx->acregmax != new->ctx->acregmax) return 0; if (old->ctx->acdirmax != new->ctx->acdirmax) return 0; |