CIFS: Fix rsize usage in readpages
authorPavel Shilovsky <pshilovsky@samba.org>
Tue, 24 Jun 2014 09:42:03 +0000 (13:42 +0400)
committerSteve French <smfrench@gmail.com>
Sat, 2 Aug 2014 06:23:03 +0000 (01:23 -0500)
commit69cebd75606f8b9162ad5d0104367370ceabeeba
tree7f7056934a1879fa266be7d9c116c39fd94ab857
parent387eb92ac6892518fb67e423f65fcaca76e256a8
CIFS: Fix rsize usage in readpages

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 readpages. 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