[patch] Increase send time out on a socket long enough inorder to eliminate any timeouts on large sends

Shirish Pargaonkar <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
Inspite of a set of data integrity patches in cifs last yer, there
still persist errors
caused due to timeouts resulting in sending incomplete data and
hence data integrity errors.

The proposed socket send timeout is large enough to elminate that possibility.
The tests with this patches have resulted in elminating data integrity errors on
an 80 hours test runs which otherwise manifest in matter of hours of a test run.

Regards,

Shirish

_______________________________________________
linux-cifs-client mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/linux-cifs-client
cifs.sndtimeo.1.patch (application/octet-stream, 678 B)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index fc44d31..74508dc 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1796,7 +1796,7 @@ ipv4_connect(struct TCP_Server_Info *server)
 	 *  user space buffer
 	 */
 	socket->sk->sk_rcvtimeo = 7 * HZ;
-	socket->sk->sk_sndtimeo = 5 * HZ;
+	socket->sk->sk_sndtimeo = 30 * HZ;
 
 	/* make the bufsizes depend on wsize/rsize and max requests */
 	if (server->noautotune) {
@@ -1947,7 +1947,7 @@ ipv6_connect(struct TCP_Server_Info *server)
 	 * user space buffer
 	 */
 	socket->sk->sk_rcvtimeo = 7 * HZ;
-	socket->sk->sk_sndtimeo = 5 * HZ;
+	socket->sk->sk_sndtimeo = 30 * HZ;
 	server->ssocket = socket;
 
 	return rc;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.