summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTom Tucker2007-12-31 04:07:27 +0100
committerJ. Bruce Fields2008-02-01 22:42:08 +0100
commit755cceaba7555027e61dfa79f1e55bdfc6906633 (patch)
tree13fa81b19e96af8130414b3535ced72b910a1aef /include
parentsvc: Add transport specific xpo_release function (diff)
downloadkernel-qcow2-linux-755cceaba7555027e61dfa79f1e55bdfc6906633.tar.gz
kernel-qcow2-linux-755cceaba7555027e61dfa79f1e55bdfc6906633.tar.xz
kernel-qcow2-linux-755cceaba7555027e61dfa79f1e55bdfc6906633.zip
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')
-rw-r--r--include/linux/sunrpc/svc_xprt.h2
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 {
int (*xpo_recvfrom)(struct svc_rqst *);
int (*xpo_sendto)(struct svc_rqst *);
void (*xpo_release_rqst)(struct svc_rqst *);
+ void (*xpo_detach)(struct svc_xprt *);
+ void (*xpo_free)(struct svc_xprt *);
};
struct svc_xprt_class {