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>
This commit is contained in:

committed by
J. Bruce Fields

parent
02fc6c3618
commit
bb5cf160b2
@@ -89,12 +89,14 @@ EXPORT_SYMBOL_GPL(svc_xprt_put);
|
||||
* Called by transport drivers to initialize the transport independent
|
||||
* portion of the transport instance.
|
||||
*/
|
||||
void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt)
|
||||
void svc_xprt_init(struct svc_xprt_class *xcl, struct svc_xprt *xprt,
|
||||
struct svc_serv *serv)
|
||||
{
|
||||
memset(xprt, 0, sizeof(*xprt));
|
||||
xprt->xpt_class = xcl;
|
||||
xprt->xpt_ops = xcl->xcl_ops;
|
||||
kref_init(&xprt->xpt_ref);
|
||||
xprt->xpt_server = serv;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(svc_xprt_init);
|
||||
|
||||
|
Reference in New Issue
Block a user