aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-06-22 17:33:57 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-03 12:42:48 -0700
commitc0f3315e568a5424c3b84b987cd57aaecc5aed9b (patch)
treea2fa7ab98620130047b5875ffd9e8672d89801bc /scripts/patch-kernel
parent601309611a1714cca934161550291dc5553b6b63 (diff)
cifs: fix wsize negotiation to respect max buffer size and active signing (try #4)
commit 1190f6a067bf27b2ee7e06ec0776a17fe0f6c4d8 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions