diff options
author | Steve French <sfrench@us.ibm.com> | 2005-10-10 17:06:37 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-10-10 17:06:37 -0400 |
commit | 5e1253b50111220f06ee13bc4e555d89ff39176b (patch) | |
tree | 3386f365db264fad206e9e019025aab1e6a5f8fa /fs/cifs/transport.c | |
parent | 02c37a6df558fb8768c4c8ae792e86e9abf2d733 (diff) |
[CIFS] Correct cifs tcp retry when some data sent before getting EAGAIN.
Continue implementation of cifs umount begin to allow force unmounts of
cifs mounts.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index d9b11690746d..d8865fbd876a 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -169,6 +169,8 @@ smb_send(struct socket *ssocket, struct smb_hdr *smb_buffer, | |||
169 | } | 169 | } |
170 | if (rc < 0) | 170 | if (rc < 0) |
171 | break; | 171 | break; |
172 | else | ||
173 | i = 0; /* reset i after each successful send */ | ||
172 | iov.iov_base += rc; | 174 | iov.iov_base += rc; |
173 | iov.iov_len -= rc; | 175 | iov.iov_len -= rc; |
174 | len -= rc; | 176 | len -= rc; |
@@ -263,6 +265,7 @@ smb_send2(struct socket *ssocket, struct kvec *iov, int n_vec, | |||
263 | } | 265 | } |
264 | } | 266 | } |
265 | } | 267 | } |
268 | i = 0; /* in case we get ENOSPC on the next send */ | ||
266 | } | 269 | } |
267 | 270 | ||
268 | if (rc < 0) { | 271 | if (rc < 0) { |