summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-08-24 18:38:18 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-08-27 23:36:21 +0300
commit7c81e6a9d75bd2c094005b64b442cec729dbdf66 (patch)
tree27a2022671c1c97d3c8552b49502126c96d8ee67 /fs/nfs
parent0a6ff58edbfb26469a095ab964095506352fc960 (diff)
downloadlinux-7c81e6a9d75bd2c094005b64b442cec729dbdf66.tar.xz
SUNRPC: Tweak TCP socket shutdown in the RPC client
We only really need to call shutdown() if we're in the ESTABLISHED TCP state, since that is the only case where the client is initiating a close of an established connection. If the socket is in FIN_WAIT1 or FIN_WAIT2, then we've already initiated socket shutdown and are waiting for the server's reply, so do nothing. In all other cases where we've already received a FIN from the server, we should be able to just close the socket. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions