patch-2.4.4 linux/net/sunrpc/clnt.c
Next file: linux/net/sunrpc/sched.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Thu Apr 19 08:38:50 2001
-  Orig file: 
v2.4.3/linux/net/sunrpc/clnt.c
-  Orig date: 
Fri Feb  9 11:29:44 2001
diff -u --recursive --new-file v2.4.3/linux/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -694,9 +694,14 @@
 	}
 
 	if (task->tk_status < 12) {
-		printk(KERN_WARNING "%s: too small RPC reply size (%d bytes)\n",
-			clnt->cl_protname, task->tk_status);
-		rpc_exit(task, -EIO);
+		if (!clnt->cl_softrtry) {
+			task->tk_action = call_transmit;
+			clnt->cl_stats->rpcretrans++;
+		} else {
+			printk(KERN_WARNING "%s: too small RPC reply size (%d bytes)\n",
+				clnt->cl_protname, task->tk_status);
+			rpc_exit(task, -EIO);
+		}
 		return;
 	}
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)