diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-12-05 16:35:51 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-12-06 10:46:53 -0500 |
commit | 282b32e17f64be2204f1ac96d7f40f92cb768cd7 (patch) | |
tree | 0a82058abdb8fad356e9eb3b70e99b8c58c3261d /net | |
parent | dd4564715eae2c4136f278da9ae1c3bb5af3e509 (diff) |
SUNRPC: create stubs for xprtsock init and cleanup
Over time we will want to add some specific init and cleanup logic for the
xprtsock implementation. Add stub routines for initialization and exit
processing.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/sunrpc_syms.c | 4 | ||||
-rw-r--r-- | net/sunrpc/xprtsock.c | 18 |
2 files changed, 22 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); | |||
138 | extern int register_rpc_pipefs(void); | 138 | extern int register_rpc_pipefs(void); |
139 | extern void unregister_rpc_pipefs(void); | 139 | extern void unregister_rpc_pipefs(void); |
140 | extern struct cache_detail ip_map_cache; | 140 | extern struct cache_detail ip_map_cache; |
141 | extern int init_socket_xprt(void); | ||
142 | extern void cleanup_socket_xprt(void); | ||
141 | 143 | ||
142 | static int __init | 144 | static int __init |
143 | init_sunrpc(void) | 145 | init_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(); | ||
158 | out: | 161 | out: |
159 | return err; | 162 | return err; |
160 | } | 163 | } |
@@ -162,6 +165,7 @@ out: | |||
162 | static void __exit | 165 | static void __exit |
163 | cleanup_sunrpc(void) | 166 | cleanup_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)) |
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index ad61b3e9123b..70131c36f371 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1502,3 +1502,21 @@ struct rpc_xprt *xs_setup_tcp(struct sockaddr *addr, size_t addrlen, struct rpc_ | |||
1502 | 1502 | ||
1503 | return xprt; | 1503 | return xprt; |
1504 | } | 1504 | } |
1505 | |||
1506 | /** | ||
1507 | * init_socket_xprt - stub | ||
1508 | * | ||
1509 | */ | ||
1510 | int init_socket_xprt(void) | ||
1511 | { | ||
1512 | return 0; | ||
1513 | } | ||
1514 | |||
1515 | /** | ||
1516 | * cleanup_socket_xprt - stub | ||
1517 | * | ||
1518 | */ | ||
1519 | void cleanup_socket_xprt(void) | ||
1520 | { | ||
1521 | return; | ||
1522 | } | ||