diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-02-21 10:14:22 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-04-26 11:41:25 -0400 |
commit | 7073ea8799a8cf73db60270986f14e4aae20fa80 (patch) | |
tree | dd2253749817c8265aa27448bdccd2d44c6bf95d /net/sunrpc/xprtsock.c | |
parent | c85b03ab200f6d2c2f80588d96d03c1f8fcaedc3 (diff) |
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 <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 9c2825827dec..ffd50348a509 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -2655,6 +2655,9 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args) | |||
2655 | } | 2655 | } |
2656 | xprt_set_bound(xprt); | 2656 | xprt_set_bound(xprt); |
2657 | xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL); | 2657 | 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; | ||
2658 | break; | 2661 | break; |
2659 | default: | 2662 | default: |
2660 | ret = ERR_PTR(-EAFNOSUPPORT); | 2663 | ret = ERR_PTR(-EAFNOSUPPORT); |