Commit d5300a3a authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[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....
parent 6960a867
...@@ -911,8 +911,9 @@ svc_tcp_sendto(struct svc_rqst *rqstp) ...@@ -911,8 +911,9 @@ svc_tcp_sendto(struct svc_rqst *rqstp)
sent = svc_sendto(rqstp, bufp->iov, bufp->nriov); sent = svc_sendto(rqstp, bufp->iov, bufp->nriov);
if (sent != bufp->len<<2) { 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, rqstp->rq_sock->sk_server->sv_name,
(sent<0)?"got error":"sent only",
sent, bufp->len << 2); sent, bufp->len << 2);
svc_delete_socket(rqstp->rq_sock); svc_delete_socket(rqstp->rq_sock);
sent = -EAGAIN; sent = -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment