aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/callback.c5
-rw-r--r--fs/nfs/callback.h7
2 files changed, 7 insertions, 5 deletions
diff --git a/fs/nfs/callback.c b/fs/nfs/callback.c
index d6c4bae14bb9..b1f7dc415392 100644
--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -149,10 +149,8 @@ out_err:
149/* 149/*
150 * Kill the server process if it is not already up. 150 * Kill the server process if it is not already up.
151 */ 151 */
152int nfs_callback_down(void) 152void nfs_callback_down(void)
153{ 153{
154 int ret = 0;
155
156 lock_kernel(); 154 lock_kernel();
157 mutex_lock(&nfs_callback_mutex); 155 mutex_lock(&nfs_callback_mutex);
158 nfs_callback_info.users--; 156 nfs_callback_info.users--;
@@ -164,7 +162,6 @@ int nfs_callback_down(void)
164 } while (wait_for_completion_timeout(&nfs_callback_info.stopped, 5*HZ) == 0); 162 } while (wait_for_completion_timeout(&nfs_callback_info.stopped, 5*HZ) == 0);
165 mutex_unlock(&nfs_callback_mutex); 163 mutex_unlock(&nfs_callback_mutex);
166 unlock_kernel(); 164 unlock_kernel();
167 return ret;
168} 165}
169 166
170static int nfs_callback_authenticate(struct svc_rqst *rqstp) 167static int nfs_callback_authenticate(struct svc_rqst *rqstp)
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h
index b252e7fe53a5..5676163d26e8 100644
--- a/fs/nfs/callback.h
+++ b/fs/nfs/callback.h
@@ -62,8 +62,13 @@ struct cb_recallargs {
62extern unsigned nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res); 62extern unsigned nfs4_callback_getattr(struct cb_getattrargs *args, struct cb_getattrres *res);
63extern unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy); 63extern unsigned nfs4_callback_recall(struct cb_recallargs *args, void *dummy);
64 64
65#ifdef CONFIG_NFS_V4
65extern int nfs_callback_up(void); 66extern int nfs_callback_up(void);
66extern int nfs_callback_down(void); 67extern void nfs_callback_down(void);
68#else
69#define nfs_callback_up() (0)
70#define nfs_callback_down() do {} while(0)
71#endif
67 72
68extern unsigned int nfs_callback_set_tcpport; 73extern unsigned int nfs_callback_set_tcpport;
69extern unsigned short nfs_callback_tcpport; 74extern unsigned short nfs_callback_tcpport;