diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 11eb9934c747..684b67771199 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -244,6 +244,11 @@ static void nfs_cb_idr_remove_locked(struct nfs_client *clp) | |||
244 | idr_remove(&cb_ident_idr, clp->cl_cb_ident); | 244 | idr_remove(&cb_ident_idr, clp->cl_cb_ident); |
245 | } | 245 | } |
246 | 246 | ||
247 | static void pnfs_init_server(struct nfs_server *server) | ||
248 | { | ||
249 | rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); | ||
250 | } | ||
251 | |||
247 | #else | 252 | #else |
248 | static void nfs4_shutdown_client(struct nfs_client *clp) | 253 | static void nfs4_shutdown_client(struct nfs_client *clp) |
249 | { | 254 | { |
@@ -256,6 +261,11 @@ void nfs_cleanup_cb_ident_idr(void) | |||
256 | static void nfs_cb_idr_remove_locked(struct nfs_client *clp) | 261 | static void nfs_cb_idr_remove_locked(struct nfs_client *clp) |
257 | { | 262 | { |
258 | } | 263 | } |
264 | |||
265 | static void pnfs_init_server(struct nfs_server *server) | ||
266 | { | ||
267 | } | ||
268 | |||
259 | #endif /* CONFIG_NFS_V4 */ | 269 | #endif /* CONFIG_NFS_V4 */ |
260 | 270 | ||
261 | /* | 271 | /* |
@@ -1024,6 +1034,8 @@ static struct nfs_server *nfs_alloc_server(void) | |||
1024 | return NULL; | 1034 | return NULL; |
1025 | } | 1035 | } |
1026 | 1036 | ||
1037 | pnfs_init_server(server); | ||
1038 | |||
1027 | return server; | 1039 | return server; |
1028 | } | 1040 | } |
1029 | 1041 | ||