Skip to content

Commit 7073ea8

Browse files
author
J. Bruce Fields
committed
SUNRPC: attempt AF_LOCAL connect on setup
In the gss-proxy case, setup time is when I know I'll have the right namespace for the connect. In other cases, it might be useful to get any connection errors earlier--though actually in practice it doesn't make any difference for rpcbind. Signed-off-by: J. Bruce Fields <[email protected]>
1 parent c85b03a commit 7073ea8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/sunrpc/xprtsock.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2655,6 +2655,9 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args)
26552655
}
26562656
xprt_set_bound(xprt);
26572657
xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
2658+
ret = ERR_PTR(xs_local_setup_socket(transport));
2659+
if (ret)
2660+
goto out_err;
26582661
break;
26592662
default:
26602663
ret = ERR_PTR(-EAFNOSUPPORT);

0 commit comments

Comments
 (0)