aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-08-20 10:00:36 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-01 18:25:47 -0400
commitbbe0a3aa4e227c8aae02a484ce1c0b655cd19055 (patch)
tree22b02b554f7b3abea3fabb92f3856aec7e84b762 /fs/nfs/callback.c
parent23c20ecd44750dd42e5fd53285a17ca8d8a9b0a3 (diff)
NFS: make nfs_callback_tcpport per network context
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r--fs/nfs/callback.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index 64e87ec045aa..94aa9d8f3086 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -23,6 +23,7 @@
23#include "nfs4_fs.h" 23#include "nfs4_fs.h"
24#include "callback.h" 24#include "callback.h"
25#include "internal.h" 25#include "internal.h"
26#include "netns.h"
26 27
27#define NFSDBG_FACILITY NFSDBG_CALLBACK 28#define NFSDBG_FACILITY NFSDBG_CALLBACK
28 29
@@ -42,14 +43,15 @@ unsigned short nfs_callback_tcpport6;
42static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) 43static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net)
43{ 44{
44 int ret; 45 int ret;
46 struct nfs_net *nn = net_generic(net, nfs_net_id);
45 47
46 ret = svc_create_xprt(serv, "tcp", net, PF_INET, 48 ret = svc_create_xprt(serv, "tcp", net, PF_INET,
47 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); 49 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS);
48 if (ret <= 0) 50 if (ret <= 0)
49 goto out_err; 51 goto out_err;
50 nfs_callback_tcpport = ret; 52 nn->nfs_callback_tcpport = ret;
51 dprintk("NFS: Callback listener port = %u (af %u, net %p)\n", 53 dprintk("NFS: Callback listener port = %u (af %u, net %p)\n",
52 nfs_callback_tcpport, PF_INET, net); 54 nn->nfs_callback_tcpport, PF_INET, net);
53 55
54 ret = svc_create_xprt(serv, "tcp", net, PF_INET6, 56 ret = svc_create_xprt(serv, "tcp", net, PF_INET6,
55 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); 57 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS);