CIFS: Fix wsize usage in iovec write
authorPavel Shilovsky <pshilovsky@samba.org>
Fri, 20 Jun 2014 12:30:46 +0000 (16:30 +0400)
committerSteve French <smfrench@gmail.com>
Sat, 2 Aug 2014 06:23:02 +0000 (01:23 -0500)
commit6ec0b01b2691d1465bb7219e031e8bf38ccd9397
tree739551116a7694306c4c081f762805f3a93a0ba4
parent43de94eadf0ceda54509335343bdc1349a2c5ab3
CIFS: Fix wsize usage in iovec write

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 iovec write. Fix this by checking wsize all the
time before repeating request in iovec write.

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/cifssmb.c
fs/cifs/file.c
fs/cifs/smb2pdu.c