summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2002-08-12 17:48:49 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-08-12 17:48:49 -0700
commitd5300a3a14c316c21fd746753cc701a544212c29 (patch)
tree2bc413bd8aff59e3ec1cf9a12175e61ace8e602b
parent6960a867d8de9f6f4807b2c6fceea68fa7bcff1f (diff)
[PATCH] PATCH - RPC/TCP 3 of 4 - Correct error message when rpc/tcp sent fails
Now that we actually do shutdown the socket, we should say so instead of just saying that we should....
-rw-r--r--net/sunrpc/svcsock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 7b0000329cb2..ea15fcb2648e 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -911,8 +911,9 @@ svc_tcp_sendto(struct svc_rqst *rqstp)
sent = svc_sendto(rqstp, bufp->iov, bufp->nriov);
if (sent != bufp->len<<2) {
- printk(KERN_NOTICE "rpc-srv/tcp: %s: sent only %d bytes of %d - should shutdown socket\n",
+ printk(KERN_NOTICE "rpc-srv/tcp: %s: %s %d when sending %d bytes - shutting down socket\n",
rqstp->rq_sock->sk_server->sv_name,
+ (sent<0)?"got error":"sent only",
sent, bufp->len << 2);
svc_delete_socket(rqstp->rq_sock);
sent = -EAGAIN;