SUNRPC: Simplify socket shutdown when not reusing TCP ports
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 24 Aug 2021 15:38:17 +0000 (11:38 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Aug 2021 20:36:21 +0000 (16:36 -0400)
commit0a6ff58edbfb26469a095ab964095506352fc960
tree5ede897a2f5e01121851899b7c1965fb1f4b275b
parentca7d1d1a0b975d3d8aaaeab008a07bb3d3c5ec7e
SUNRPC: Simplify socket shutdown when not reusing TCP ports

If we're not required to reuse the TCP port, then we can just
immediately close the socket, and leave the cleanup details to the TCP
layer.

Fixes: e6237b6feb37 ("NFSv4.1: Don't rebind to the same source port when reconnecting to the server")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtsock.c