diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2014-06-20 16:30:46 +0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-08-02 10:23:02 +0400 |
commit | 6ec0b01b2691d1465bb7219e031e8bf38ccd9397 (patch) | |
tree | 739551116a7694306c4c081f762805f3a93a0ba4 /fs/cifs/cifssmb.c | |
parent | 43de94eadf0ceda54509335343bdc1349a2c5ab3 (diff) | |
download | linux-6ec0b01b2691d1465bb7219e031e8bf38ccd9397.tar.xz |
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/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 52cfd8cf0db0..1b3f0aef01e3 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -196,10 +196,6 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command) if (rc) goto out; - /* - * FIXME: check if wsize needs updated due to negotiated smb buffer - * size shrinking - */ atomic_inc(&tconInfoReconnectCount); /* tell server Unix caps we support */ |