CIFS: Fix rsize usage in user read
authorPavel Shilovsky <pshilovsky@samba.org>
Wed, 25 Jun 2014 06:45:07 +0000 (10:45 +0400)
committerSteve French <smfrench@gmail.com>
Sat, 2 Aug 2014 06:23:03 +0000 (01:23 -0500)
commit25f402598d2c8f0808d93715ad33e43b265c1604
tree6e1c184cd4078276ff7f6d0a737fa4a7b6696636
parent0ada36b244e8316bb47b46b84b33c5a507bed7a4
CIFS: Fix rsize usage in user read

If a server changes maximum buffer size for read (rsize) requests
on reconnect we can fail on repeating with a big size buffer on
-EAGAIN error in user read. Fix this by checking rsize all the
time before repeating requests.

Reviewed-by: Shirish Pargaonkar <spargaonkar@suse.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c