Skip to content

Commit c653ce3

Browse files
xemulJ. Bruce Fields
authored andcommitted
sunrpc: Add net to rpc_create_args
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 62832c0 commit c653ce3

7 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎fs/lockd/host.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ nlm_bind_host(struct nlm_host *host)
353353
.to_retries = 5U,
354354
};
355355
struct rpc_create_args args = {
356+
.net = &init_net,
356357
.protocol = host->h_proto,
357358
.address = nlm_addr(host),
358359
.addrsize = host->h_addrlen,

‎fs/lockd/mon.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static struct rpc_clnt *nsm_create(void)
6969
.sin_addr.s_addr = htonl(INADDR_LOOPBACK),
7070
};
7171
struct rpc_create_args args = {
72+
.net = &init_net,
7273
.protocol = XPRT_TRANSPORT_UDP,
7374
.address = (struct sockaddr *)&sin,
7475
.addrsize = sizeof(sin),

‎fs/nfs/client.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ static int nfs_create_rpc_client(struct nfs_client *clp,
601601
{
602602
struct rpc_clnt *clnt = NULL;
603603
struct rpc_create_args args = {
604+
.net = &init_net,
604605
.protocol = clp->cl_proto,
605606
.address = (struct sockaddr *)&clp->cl_addr,
606607
.addrsize = clp->cl_addrlen,

‎fs/nfs/mount_clnt.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ int nfs_mount(struct nfs_mount_request *info)
153153
.rpc_resp = &result,
154154
};
155155
struct rpc_create_args args = {
156+
.net = &init_net,
156157
.protocol = info->protocol,
157158
.address = info->sap,
158159
.addrsize = info->salen,
@@ -224,6 +225,7 @@ void nfs_umount(const struct nfs_mount_request *info)
224225
.to_retries = 2,
225226
};
226227
struct rpc_create_args args = {
228+
.net = &init_net,
227229
.protocol = IPPROTO_UDP,
228230
.address = info->sap,
229231
.addrsize = info->salen,

‎fs/nfsd/nfs4callback.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *cb)
479479
.to_retries = 0,
480480
};
481481
struct rpc_create_args args = {
482+
.net = &init_net,
482483
.protocol = XPRT_TRANSPORT_TCP,
483484
.address = (struct sockaddr *) &cb->cb_addr,
484485
.addrsize = cb->cb_addrlen,

‎include/linux/sunrpc/clnt.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ struct rpc_procinfo {
102102
#ifdef __KERNEL__
103103

104104
struct rpc_create_args {
105+
struct net *net;
105106
int protocol;
106107
struct sockaddr *address;
107108
size_t addrsize;

‎net/sunrpc/rpcb_clnt.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static DEFINE_MUTEX(rpcb_create_local_mutex);
177177
static int rpcb_create_local(void)
178178
{
179179
struct rpc_create_args args = {
180+
.net = &init_net,
180181
.protocol = XPRT_TRANSPORT_TCP,
181182
.address = (struct sockaddr *)&rpcb_inaddr_loopback,
182183
.addrsize = sizeof(rpcb_inaddr_loopback),
@@ -228,6 +229,7 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
228229
size_t salen, int proto, u32 version)
229230
{
230231
struct rpc_create_args args = {
232+
.net = &init_net,
231233
.protocol = proto,
232234
.address = srvaddr,
233235
.addrsize = salen,

0 commit comments

Comments
 (0)