]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Respect negotiated MaxMpxCount
authorPavel Shilovsky <piastry@etersoft.ru>
Tue, 20 Mar 2012 09:55:09 +0000 (12:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:52:50 +0000 (09:52 -0700)
commita3f7edf2fcb8e3e9c530c596a6c07479aeed418b
tree494ce2d4b57d6ecb8731030673f4c452d7ec140d
parentcebef762efaa200ad00134a14c88374c6faaac6d
CIFS: Respect negotiated MaxMpxCount

commit 10b9b98e41ba248a899f6175ce96ee91431b6194 upstream.

Some servers sets this value less than 50 that was hardcoded and
we lost the connection if when we exceed this limit. Fix this by
respecting this value - not sending more than the server allows.

Reviewed-by: Jeff Layton <jlayton@samba.org>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/transport.c