diff options
author | 2014-11-19 07:51:22 -0500 | |
---|---|---|
committer | 2014-12-09 11:22:21 -0500 | |
commit | 0b5707e4524eb817b7b02863887820d27b56910a (patch) | |
tree | ebf0f04f6fb60e3ab8d368fff3667ec149c5e31b /net/sunrpc | |
parent | sunrpc: have svc_wake_up only deal with pool 0 (diff) | |
download | linux-0b5707e4524eb817b7b02863887820d27b56910a.tar.gz linux-0b5707e4524eb817b7b02863887820d27b56910a.tar.bz2 linux-0b5707e4524eb817b7b02863887820d27b56910a.zip |
sunrpc: require svc_create callers to pass in meaningful shutdown routine
Currently all svc_create callers pass in NULL for the shutdown parm,
which then gets fixed up to be svc_rpcb_cleanup if the service uses
rpcbind.
Simplify this by instead having the the only caller that requires it
(lockd) pass in svc_rpcb_cleanup and get rid of the special casing.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 2c1c49ebd84d..a06a891012e5 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -482,9 +482,6 @@ __svc_create(struct svc_program *prog, unsigned int bufsize, int npools, spin_lock_init(&pool->sp_lock); } - if (svc_uses_rpcbind(serv) && (!serv->sv_shutdown)) - serv->sv_shutdown = svc_rpcb_cleanup; - return serv; } |