summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShirish Pargaonkar2008-07-29 23:26:13 +0200
committerSteve French2008-07-29 23:26:13 +0200
commit176803562b541ebf4744e44e6600fb60660255d5 (patch)
treed878bb3f6cf2da56c725f02d1ac852b902a6dfcc
parent[CIFS] oid should also be checked against class in cifs asn (diff)
downloadkernel-qcow2-linux-176803562b541ebf4744e44e6600fb60660255d5.tar.gz
kernel-qcow2-linux-176803562b541ebf4744e44e6600fb60660255d5.tar.xz
kernel-qcow2-linux-176803562b541ebf4744e44e6600fb60660255d5.zip
[CIFS] cifs send2 not retrying enough in some cases on full socket
There are cases in which, on a full socket which requires retry on sending data by the app (cifs in this case), that we were not retrying since we did not reinitialize a counter. This fixes the retry logic to retry up to 15 seconds on stuck sockets. Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
-rw-r--r--fs/cifs/transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index 000ac509c98a..e286db9f5ee2 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -265,6 +265,7 @@ smb_send2(struct socket *ssocket, struct kvec *iov, int n_vec,
cFYI(1, ("Sending smb: total_len %d", total_len));
dump_smb(smb_buffer, len);
+ i = 0;
while (total_len) {
rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec],
n_vec - first_vec, total_len);