SUNRPC: Prevent immediate close+reconnect
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 26 Oct 2021 22:01:07 +0000 (18:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:24 +0000 (20:59 +0200)
commitb911702a01057769dbd6889f3e25a45a589bcd4f
tree001bc87a728e8d588b363a1dc02375e6fc95862e
parenta551e6629247dc84f8cea5d494542c532ea69161
SUNRPC: Prevent immediate close+reconnect

commit 3be232f11a3cc9b0ef0795e39fa11bdb8e422a06 upstream.

If we have already set up the socket and are waiting for it to connect,
then don't immediately close and retry.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c