SUNRPC: Prevent immediate close+reconnect
BugLink: https://bugs.launchpad.net/bugs/1969107
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>
(cherry picked from commit
b911702a01057769dbd6889f3e25a45a589bcd4f)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>