]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: advertise the right receive buffer size to the server
authorJeff Layton <jlayton@redhat.com>
Tue, 26 Jul 2011 16:20:18 +0000 (12:20 -0400)
committerSteve French <sfrench@us.ibm.com>
Sun, 31 Jul 2011 21:20:58 +0000 (21:20 +0000)
commit97c9109ea01241de01af25f3f632842a358817b9
tree94c64f9df5092a6978bc9cf0767059a2cb07044f
parent8083813c0b93c4a53963eebe9922e29ea0a0250e
cifs: advertise the right receive buffer size to the server

Currently, we mirror the same size back to the server that it sends us.
That makes little sense. Instead we should be sending the server the
maximum buffer size that we can handle -- CIFSMaxBufSize minus the
4 byte RFC1001 header.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/sess.c