Commit 727fcc64 authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: Don't suppress socket errors when a message read completes

If the message read completes, but the socket returned an error
condition, we should ensure to propagate that error.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent e92053a5
......@@ -508,13 +508,10 @@ xs_read_stream_request(struct sock_xprt *transport, struct msghdr *msg,
&read);
transport->recv.offset += read;
transport->recv.copied += read;
} else
read = 0;
}
if (transport->recv.offset == transport->recv.len) {
if (transport->recv.offset == transport->recv.len)
xs_read_stream_check_eor(transport, msg);
return read;
}
if (want == 0)
return 0;
......
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