SUNRPC: Split portmap unregister API into separate function
Subsystems (3)
PATCH 2/4 SUNRPC: Split portmap unregister API into separate function
Registering and unregistering RPC services with the local portmapper are sufficiently different that splitting these makes sense. They will diverge a bit more as we add support for AF_INET6.
Signed-off-by Chuck Lever <[email protected]>
---
include/linux/sunrpc/svc.h | 1 + net/sunrpc/svc.c | 49 ++++++++++++++++++++++++++++++-------------- 2 files changed, 34 insertions(+), 16 deletions(-)
include/linux/sunrpc/svc.h +1 -0
@@ -391,6 +391,7 @@ int svc_set_num_threads(struct svc_serv *, struct svc_pool *, int);void svc_destroy (struct svc_serv *);int svc_process (struct svc_rqst *);int svc_register (struct svc_serv *,int ,unsigned short ); +void svc_unregister (struct svc_serv *serv);void svc_wake_up (struct svc_serv *);void svc_reserve (struct svc_rqst *rqstp,int space);struct svc_pool *svc_pool_for_cpu (struct svc_serv *serv,int cpu);
net/sunrpc/svc.c +33 -16
83 lines not on this page · raw message