diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2014-06-20 16:30:46 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-08-02 01:23:02 -0500 |
commit | 6ec0b01b2691d1465bb7219e031e8bf38ccd9397 (patch) | |
tree | 739551116a7694306c4c081f762805f3a93a0ba4 /fs/cifs/smb2pdu.c | |
parent | 43de94eadf0ceda54509335343bdc1349a2c5ab3 (diff) | |
download | op-kernel-dev-6ec0b01b2691d1465bb7219e031e8bf38ccd9397.zip op-kernel-dev-6ec0b01b2691d1465bb7219e031e8bf38ccd9397.tar.gz |
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>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 0158104..da7aa62 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -245,10 +245,6 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon) if (rc) goto out; atomic_inc(&tconInfoReconnectCount); - /* - * BB FIXME add code to check if wsize needs update due to negotiated - * smb buffer size shrinking. - */ out: /* * Check if handle based operation so we know whether we can continue |