SUNRPC: ECONNRESET might require a rebind
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 17 Sep 2023 13:06:05 +0000 (09:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:48 +0000 (17:19 +0000)
commitd4f51690e6554c623b721552af09b14f4fa33b9f
tree0bb5911466ebf973a7352e23128bc85dc08602fc
parent8159c843e4d2d3bd0d6d058a603610c40ce7c5df
SUNRPC: ECONNRESET might require a rebind

[ Upstream commit 4b09ca1508a60be30b2e3940264e93d7aeb5c97e ]

If connect() is returning ECONNRESET, it usually means that nothing is
listening on that port. If so, a rebind might be required in order to
obtain the new port on which the RPC service is listening.

Fixes: fd01b2597941 ("SUNRPC: ECONNREFUSED should cause a rebind.")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/clnt.c