aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/callback.c')
-rw-r--r--fs/nfs/callback.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index f2ca782aba33..fcd97406a778 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -14,6 +14,9 @@
14#include <linux/sunrpc/svc.h> 14#include <linux/sunrpc/svc.h>
15#include <linux/sunrpc/svcsock.h> 15#include <linux/sunrpc/svcsock.h>
16#include <linux/nfs_fs.h> 16#include <linux/nfs_fs.h>
17
18#include <net/inet_sock.h>
19
17#include "nfs4_fs.h" 20#include "nfs4_fs.h"
18#include "callback.h" 21#include "callback.h"
19 22
@@ -31,6 +34,7 @@ static struct nfs_callback_data nfs_callback_info;
31static DECLARE_MUTEX(nfs_callback_sema); 34static DECLARE_MUTEX(nfs_callback_sema);
32static struct svc_program nfs4_callback_program; 35static struct svc_program nfs4_callback_program;
33 36
37unsigned int nfs_callback_set_tcpport;
34unsigned short nfs_callback_tcpport; 38unsigned short nfs_callback_tcpport;
35 39
36/* 40/*
@@ -95,7 +99,7 @@ int nfs_callback_up(void)
95 if (!serv) 99 if (!serv)
96 goto out_err; 100 goto out_err;
97 /* FIXME: We don't want to register this socket with the portmapper */ 101 /* FIXME: We don't want to register this socket with the portmapper */
98 ret = svc_makesock(serv, IPPROTO_TCP, 0); 102 ret = svc_makesock(serv, IPPROTO_TCP, nfs_callback_set_tcpport);
99 if (ret < 0) 103 if (ret < 0)
100 goto out_destroy; 104 goto out_destroy;
101 if (!list_empty(&serv->sv_permsocks)) { 105 if (!list_empty(&serv->sv_permsocks)) {