]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Fix wsize usage in writepages
authorPavel Shilovsky <pshilovsky@samba.org>
Thu, 19 Jun 2014 12:15:16 +0000 (16:15 +0400)
committerSteve French <smfrench@gmail.com>
Thu, 26 Jun 2014 05:40:05 +0000 (00:40 -0500)
commit2c16d76a327815fa626c61dd462d5547744045d5
treed1c75742920467bbcfa17eff6b24fc3653a8c8a5
parent14648ac33de4234dde665c70f0ac1eecf8c5e546
CIFS: Fix wsize usage in writepages

If a server change maximum buffer size for write (wsize) requests
on reconnect we can fail on repeating with a big size buffer on
-EAGAIN error in writepages. Fix this by checking wsize all the
time before repeating request in writepages.

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