summaryrefslogtreecommitdiff
path: root/fs/cifs/smb2glob.h
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2016-09-23 08:44:16 +0300
committerSteve French <smfrench@gmail.com>2016-10-12 20:08:33 +0300
commit141891f4727c08829755be6c785e125d2e96c899 (patch)
treed2c32b7875356357062a0ab67044a4ae7287b689 /fs/cifs/smb2glob.h
parent52ace1ef1259e119a24a34b45cb800c4e7529090 (diff)
downloadlinux-141891f4727c08829755be6c785e125d2e96c899.tar.xz
SMB3: Add mount parameter to allow user to override max credits
Add mount option "max_credits" to allow setting maximum SMB3 credits to any value from 10 to 64000 (default is 32000). This can be useful to workaround servers with problems allocating credits, or to throttle the client to use smaller amount of simultaneous i/o or to workaround server performance issues. Also adds a cap, so that even if the server granted us more than 65000 credits due to a server bug, we would not use that many. Signed-off-by: Steve French <steve.french@primarydata.com>
Diffstat (limited to 'fs/cifs/smb2glob.h')
-rw-r--r--fs/cifs/smb2glob.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/cifs/smb2glob.h b/fs/cifs/smb2glob.h
index 238759c146ba..0ffa18094335 100644
--- a/fs/cifs/smb2glob.h
+++ b/fs/cifs/smb2glob.h
@@ -61,14 +61,4 @@
/* Maximum buffer size value we can send with 1 credit */
#define SMB2_MAX_BUFFER_SIZE 65536
-/*
- * Maximum number of credits to keep available.
- * This value is chosen somewhat arbitrarily. The Windows client
- * defaults to 128 credits, the Windows server allows clients up to
- * 512 credits, and the NetApp server does not limit clients at all.
- * Choose a high enough value such that the client shouldn't limit
- * performance.
- */
-#define SMB2_MAX_CREDITS_AVAILABLE 32000
-
#endif /* _SMB2_GLOB_H */