]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
SUNRPC: attempt AF_LOCAL connect on setup
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Feb 2013 15:14:22 +0000 (10:14 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 26 Apr 2013 15:41:25 +0000 (11:41 -0400)
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>
net/sunrpc/xprtsock.c

index 9c2825827decfb1a0b6fd2f4a80c0cd66fe36eb7..ffd50348a509e392fa2255f17f35a9291239e91c 100644 (file)
@@ -2655,6 +2655,9 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args)
                }
                xprt_set_bound(xprt);
                xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
+               ret = ERR_PTR(xs_local_setup_socket(transport));
+               if (ret)
+                       goto out_err;
                break;
        default:
                ret = ERR_PTR(-EAFNOSUPPORT);