SUNRPC: Don't retry using the same source port if connection failed
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Sep 2023 16:59:13 +0000 (12:59 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 28 Feb 2024 20:00:14 +0000 (15:00 -0500)
commit31d90deb653a5c34d8d648b8a1b459b929be1a73
treed5a00e438c8308e5a34731a23842c11d0980dc7c
parentd206a76d7d2726f3b096037f2079ce0bd3ba329b
SUNRPC: Don't retry using the same source port if connection failed

If the TCP connection attempt fails without ever establishing a
connection, then assume the problem may be the server is rejecting us
due to port reuse.

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