aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/callback.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index ddf4b4ae6967..0ef47dff89be 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -41,16 +41,6 @@ unsigned short nfs_callback_tcpport;
41static const int nfs_set_port_min = 0; 41static const int nfs_set_port_min = 0;
42static const int nfs_set_port_max = 65535; 42static const int nfs_set_port_max = 65535;
43 43
44/*
45 * If the kernel has IPv6 support available, always listen for
46 * both AF_INET and AF_INET6 requests.
47 */
48#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
49static const sa_family_t nfs_callback_family = AF_INET6;
50#else
51static const sa_family_t nfs_callback_family = AF_INET;
52#endif
53
54static int param_set_port(const char *val, struct kernel_param *kp) 44static int param_set_port(const char *val, struct kernel_param *kp)
55{ 45{
56 char *endp; 46 char *endp;
@@ -121,13 +111,13 @@ int nfs_callback_up(void)
121 if (!serv) 111 if (!serv)
122 goto out_err; 112 goto out_err;
123 113
124 ret = svc_create_xprt(serv, "tcp", nfs_callback_family, 114 ret = svc_create_xprt(serv, "tcp", PF_INET,
125 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS); 115 nfs_callback_set_tcpport, SVC_SOCK_ANONYMOUS);
126 if (ret <= 0) 116 if (ret <= 0)
127 goto out_err; 117 goto out_err;
128 nfs_callback_tcpport = ret; 118 nfs_callback_tcpport = ret;
129 dprintk("NFS: Callback listener port = %u (af %u)\n", 119 dprintk("NFS: Callback listener port = %u (af %u)\n",
130 nfs_callback_tcpport, nfs_callback_family); 120 nfs_callback_tcpport, PF_INET);
131 121
132 nfs_callback_info.rqst = svc_prepare_thread(serv, &serv->sv_pools[0]); 122 nfs_callback_info.rqst = svc_prepare_thread(serv, &serv->sv_pools[0]);
133 if (IS_ERR(nfs_callback_info.rqst)) { 123 if (IS_ERR(nfs_callback_info.rqst)) {