sunrpc: Add net to xprt_create
authorPavel Emelyanov <xemul@parallels.com>
Wed, 29 Sep 2010 12:05:12 +0000 (16:05 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Oct 2010 21:18:57 +0000 (17:18 -0400)
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c

index af4b560f0794960c54cf426b2344ad31cfc48dd9..c4f931597d0efab028af29506a93f182df51a62c 100644 (file)
@@ -249,6 +249,7 @@ static inline int bc_prealloc(struct rpc_rqst *req)
 
 struct xprt_create {
        int                     ident;          /* XPRT_TRANSPORT identifier */
+       struct net *            net;
        struct sockaddr *       srcaddr;        /* optional local address */
        struct sockaddr *       dstaddr;        /* remote peer address */
        size_t                  addrlen;
index fa5549079d79ca7709d3a68bc686b77f10b08243..f4bbd830a4f3b80addb1f00df9a7213ef142b90a 100644 (file)
@@ -284,6 +284,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
        struct rpc_xprt *xprt;
        struct rpc_clnt *clnt;
        struct xprt_create xprtargs = {
+               .net = args->net,
                .ident = args->protocol,
                .srcaddr = args->saddress,
                .dstaddr = args->address,