]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Make xs_tcp_close() do a socket shutdown rather than a sock_release
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 9 Feb 2015 14:23:34 +0000 (09:23 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 9 Feb 2015 16:20:44 +0000 (11:20 -0500)
commita62f4ced70be22d88c7c95ec2dbe8bea21aa1197
tree34551130a009cc920f907bca6a804f0d380f7814
parent2a1bddc4a92160c5516649d492e7dbe7e98748d9
SUNRPC: Make xs_tcp_close() do a socket shutdown rather than a sock_release

Use of socket shutdown() means that we monitor the shutdown process
through the xs_tcp_state_change() callback, so it is preferable to
a full close in all cases unless we're destroying the transport.

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