patch-2.4.0-test3 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: 32
- Date:
Fri Jul 7 15:57:49 2000
- Orig file:
v2.4.0-test2/linux/net/sunrpc/clnt.c
- Orig date:
Fri Jun 23 21:55:24 2000
diff -u --recursive --new-file v2.4.0-test2/linux/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -484,7 +484,6 @@
req->rq_rvec[0].iov_len = bufsiz;
req->rq_rlen = bufsiz;
req->rq_rnr = 1;
- req->rq_damaged = 0;
/* Zero buffer so we have automatic zero-padding of opaque & string */
memset(task->tk_buffer, 0, bufsiz);
@@ -603,10 +602,7 @@
rpc_sleep_on(&xprt->sending, task, NULL, NULL);
case -ENOMEM:
case -EAGAIN:
- if (req->rq_damaged)
- task->tk_action = call_encode;
- else
- task->tk_action = call_transmit;
+ task->tk_action = call_transmit;
clnt->cl_stats->rpcretrans++;
break;
default:
@@ -664,10 +660,7 @@
minor_timeout:
if (!req)
task->tk_action = call_reserve;
- else if (req->rq_damaged) {
- task->tk_action = call_encode;
- clnt->cl_stats->rpcretrans++;
- } else if (!clnt->cl_port) {
+ else if (!clnt->cl_port) {
task->tk_action = call_bind;
clnt->cl_stats->rpcretrans++;
} else if (clnt->cl_xprt->stream && !clnt->cl_xprt->connected) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)