]> 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)
commitb0449d756f2383db6b8966d7df242432c2c8dc4d
tree94c64f9df5092a6978bc9cf0767059a2cb07044f
parent3328ee13fb6921d0b69204397e839db9bc887655
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