Skip to content

Commit 28ec614

Browse files
Paulo Alcantarasmfrench
authored andcommitted
smb: client: allow more DFS referrals to be cached
In some DFS setups, a single DFS share may contain hundreds of DFS links and increasing the DFS cache to allow more referrals to be cached improves DFS failover as the client will likely find a cached DFS referral when reconnecting and then avoiding unnecessary remounts. Signed-off-by: Paulo Alcantara (Red Hat) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent f4ca4f5 commit 28ec614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/smb/client/dfs_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
#include "dfs_cache.h"
2626

27-
#define CACHE_HTABLE_SIZE 32
28-
#define CACHE_MAX_ENTRIES 64
27+
#define CACHE_HTABLE_SIZE 512
28+
#define CACHE_MAX_ENTRIES 1024
2929
#define CACHE_MIN_TTL 120 /* 2 minutes */
3030
#define CACHE_DEFAULT_TTL 300 /* 5 minutes */
3131

0 commit comments

Comments
 (0)