]> 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)
commit6dc4ac84ecb6b98c4314c8efcd6b79193bfa4441
tree0f9dfe922df7ec9ca2160d6edda7eb1aac848e8b
parent265fac303990421c9462909c63572b42aec1cd50
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