aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sunrpc_syms.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/sunrpc_syms.c')
-rw-r--r--net/sunrpc/sunrpc_syms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index faaf81e97720..d85fddeb6388 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -138,6 +138,8 @@ EXPORT_SYMBOL(nlm_debug);
138extern int register_rpc_pipefs(void); 138extern int register_rpc_pipefs(void);
139extern void unregister_rpc_pipefs(void); 139extern void unregister_rpc_pipefs(void);
140extern struct cache_detail ip_map_cache; 140extern struct cache_detail ip_map_cache;
141extern int init_socket_xprt(void);
142extern void cleanup_socket_xprt(void);
141 143
142static int __init 144static int __init
143init_sunrpc(void) 145init_sunrpc(void)
@@ -155,6 +157,7 @@ init_sunrpc(void)
155 rpc_proc_init(); 157 rpc_proc_init();
156#endif 158#endif
157 cache_register(&ip_map_cache); 159 cache_register(&ip_map_cache);
160 init_socket_xprt();
158out: 161out:
159 return err; 162 return err;
160} 163}
@@ -162,6 +165,7 @@ out:
162static void __exit 165static void __exit
163cleanup_sunrpc(void) 166cleanup_sunrpc(void)
164{ 167{
168 cleanup_socket_xprt();
165 unregister_rpc_pipefs(); 169 unregister_rpc_pipefs();
166 rpc_destroy_mempool(); 170 rpc_destroy_mempool();
167 if (cache_unregister(&ip_map_cache)) 171 if (cache_unregister(&ip_map_cache))