]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't force a redundant disconnection in xs_read_stream()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Dec 2018 23:49:00 +0000 (18:49 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Dec 2018 12:11:12 +0000 (07:11 -0500)
commit44c9535dcae6eec8590b43ae35c0b6a5c998466d
tree0f9dfe922df7ec9ca2160d6edda7eb1aac848e8b
parented57fe291abe95724d95976944badda5901583b1
SUNRPC: Don't force a redundant disconnection in xs_read_stream()

If the connection is broken, then xs_tcp_state_change() will take care
of scheduling the socket close as soon as appropriate. xs_read_stream()
just needs to report the error.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c