svc: Change services to use new svc_create_xprt service
Modify the various kernel RPC svcs to use the svc_create_xprt service. 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
b700cbb11f
commit
d7c9f1ed97
@@ -1988,28 +1988,6 @@ void svc_force_close_socket(struct svc_sock *svsk)
|
||||
svc_close_socket(svsk);
|
||||
}
|
||||
|
||||
/**
|
||||
* svc_makesock - Make a socket for nfsd and lockd
|
||||
* @serv: RPC server structure
|
||||
* @protocol: transport protocol to use
|
||||
* @port: port to use
|
||||
* @flags: requested socket characteristics
|
||||
*
|
||||
*/
|
||||
int svc_makesock(struct svc_serv *serv, int protocol, unsigned short port,
|
||||
int flags)
|
||||
{
|
||||
dprintk("svc: creating socket proto = %d\n", protocol);
|
||||
switch (protocol) {
|
||||
case IPPROTO_TCP:
|
||||
return svc_create_xprt(serv, "tcp", port, flags);
|
||||
case IPPROTO_UDP:
|
||||
return svc_create_xprt(serv, "udp", port, flags);
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Handle defer and revisit of requests
|
||||
*/
|
||||
|
Reference in New Issue
Block a user