diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:27 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:08 -0500 |
commit | 755cceaba7555027e61dfa79f1e55bdfc6906633 (patch) | |
tree | 13fa81b19e96af8130414b3535ced72b910a1aef /include/linux/sunrpc/svc_xprt.h | |
parent | 5148bf4ebc1f59dc6a0ec43a220c55ff0771246e (diff) |
svc: Add per-transport delete functions
Add transport specific xpo_detach and xpo_free functions. The xpo_detach
function causes the transport to stop delivering data-ready events
and enqueing the transport for I/O.
The xpo_free function frees all resources associated with the particular
transport instance.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/sunrpc/svc_xprt.h')
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 01ee7bc2c374..f032fb6b32e9 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -13,6 +13,8 @@ struct svc_xprt_ops { | |||
13 | int (*xpo_recvfrom)(struct svc_rqst *); | 13 | int (*xpo_recvfrom)(struct svc_rqst *); |
14 | int (*xpo_sendto)(struct svc_rqst *); | 14 | int (*xpo_sendto)(struct svc_rqst *); |
15 | void (*xpo_release_rqst)(struct svc_rqst *); | 15 | void (*xpo_release_rqst)(struct svc_rqst *); |
16 | void (*xpo_detach)(struct svc_xprt *); | ||
17 | void (*xpo_free)(struct svc_xprt *); | ||
16 | }; | 18 | }; |
17 | 19 | ||
18 | struct svc_xprt_class { | 20 | struct svc_xprt_class { |