]> git.baikalelectronics.ru Git - kernel.git/commit
SMB3: Add mount parameter to allow user to override max credits
authorSteve French <smfrench@gmail.com>
Fri, 23 Sep 2016 05:44:16 +0000 (00:44 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 12 Oct 2016 17:08:33 +0000 (12:08 -0500)
commita1a4483a131075c64e51a8f1da4628ba61d92084
treed2c32b7875356357062a0ab67044a4ae7287b689
parent1db74c06e7dbb9f1da2a4184bbf2cc70598461db
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>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2glob.h
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c