diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:50 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:11 -0500 |
commit | bb5cf160b282644c4491afbf76fbc66f5dc35030 (patch) | |
tree | 76443ea6f87faf4d2e039ca6d2e3a7008261a1d2 /net/sunrpc/svc_xprt.c | |
parent | 02fc6c36188be0ad19502cfd39266150ffab7603 (diff) |
svc: Move sk_server and sk_pool to svc_xprt
This is another incremental change that moves transport independent
fields from svc_sock to the svc_xprt structure. The changes
should be functionally null.
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 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 31853bfcd88d..ea17b533db74 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
@@ -89,12 +89,14 @@ EXPORT_SYMBOL_GPL(svc_xprt_put); | |||
89 | * Called by transport drivers to initialize the transport independent | 89 | * Called by transport drivers to initialize the transport independent |
90 | * portion of the transport instance. | 90 | * portion of the transport instance. |
91 | */ | 91 | */ |
92 | void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt) | 92 | void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt, |
93 | struct svc_serv *serv) | ||
93 | { | 94 | { |
94 | memset(xprt, 0, sizeof(*xprt)); | 95 | memset(xprt, 0, sizeof(*xprt)); |
95 | xprt->xpt_class = xcl; | 96 | xprt->xpt_class = xcl; |
96 | xprt->xpt_ops = xcl->xcl_ops; | 97 | xprt->xpt_ops = xcl->xcl_ops; |
97 | kref_init(&xprt->xpt_ref); | 98 | kref_init(&xprt->xpt_ref); |
99 | xprt->xpt_server = serv; | ||
98 | } | 100 | } |
99 | EXPORT_SYMBOL_GPL(svc_xprt_init); | 101 | EXPORT_SYMBOL_GPL(svc_xprt_init); |
100 | 102 | ||