]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: request more credits on tree connect
authorSteve French <stfrench@microsoft.com>
Thu, 14 Feb 2019 07:19:02 +0000 (01:19 -0600)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:05:35 +0000 (20:05 -0600)
commitd2e01644b53199401e794ccca044af127417e567
tree9b5866db0a2ddc859dc7c863ed7ea7f063670da6
parentfb9424be4e4c08d115992a05d4304e0476ab8c77
smb3: request more credits on tree connect

If we try large I/O (read or write) immediately after mount
we won't typically have enough credits because we only request
large amounts of credits on the first session setup.  So if
large I/O is attempted soon after mount we will typically only
have about 43 credits rather than 105 credits (with this patch)
available for the large i/o (which needs 64 credits minimum).

This patch requests more credits during tree connect, which
helps ensure that we have enough credits when mount completes
(between these requests and the first session setup) in order
 to start large I/O immediately after mount if needed.

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2pdu.c