]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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>
Sat, 2 Aug 2014 06:23:02 +0000 (01:23 -0500)
commit66231a47965c551d3056d5104f8b06688065748c
treee0cd7960963fd8cdec2833724be99c29b6aeab8c
parent90ac1387c2dfcd9b4bd302fce03b9ddff73d0093
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.

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