diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-06-23 01:33:57 +0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-06-23 21:54:39 +0400 |
commit | 1190f6a067bf27b2ee7e06ec0776a17fe0f6c4d8 (patch) | |
tree | 7a754b292e2cac6f5fe808d3e66c90c9689593e9 /drivers/pci | |
parent | 446b23a75804d7ffa4cca2d4d8f0afb822108c7e (diff) | |
download | linux-1190f6a067bf27b2ee7e06ec0776a17fe0f6c4d8.tar.xz |
cifs: fix wsize negotiation to respect max buffer size and active signing (try #4)
Hopefully last version. Base signing check on CAP_UNIX instead of
tcon->unix_ext, also clean up the comments a bit more.
According to Hongwei Sun's blog posting here:
http://blogs.msdn.com/b/openspecification/archive/2009/04/10/smb-maximum-transmit-buffer-size-and-performance-tuning.aspx
CAP_LARGE_WRITEX is ignored when signing is active. Also, the maximum
size for a write without CAP_LARGE_WRITEX should be the maxBuf that
the server sent in the NEGOTIATE request.
Fix the wsize negotiation to take this into account. While we're at it,
alter the other wsize definitions to use sizeof(WRITE_REQ) to allow for
slightly larger amounts of data to potentially be written per request.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions