diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-01-25 19:49:29 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-02-28 16:26:39 +0100 |
commit | 87cdd8641c8a1ec6afd2468265e20840a57fd888 (patch) | |
tree | c168a965a0d4a63c96e15cda205bc56e38de84c9 /fs/lockd/svc.c | |
parent | SUNRPC: Merge svc_do_enqueue_xprt() into svc_enqueue_xprt() (diff) | |
download | linux-87cdd8641c8a1ec6afd2468265e20840a57fd888.tar.xz linux-87cdd8641c8a1ec6afd2468265e20840a57fd888.zip |
SUNRPC: Remove svo_shutdown method
Clean up. Neil observed that "any code that calls svc_shutdown_net()
knows what the shutdown function should be, and so can call it
directly."
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r-- | fs/lockd/svc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 3a05af873625..f5b688a844aa 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -249,6 +249,7 @@ out_err: printk(KERN_WARNING "lockd_up: makesock failed, error=%d\n", err); svc_shutdown_net(serv, net); + svc_rpcb_cleanup(serv, net); return err; } @@ -287,8 +288,7 @@ static void lockd_down_net(struct svc_serv *serv, struct net *net) cancel_delayed_work_sync(&ln->grace_period_end); locks_end_grace(&ln->lockd_manager); svc_shutdown_net(serv, net); - dprintk("%s: per-net data destroyed; net=%x\n", - __func__, net->ns.inum); + svc_rpcb_cleanup(serv, net); } } else { pr_err("%s: no users! net=%x\n", @@ -351,7 +351,6 @@ static struct notifier_block lockd_inet6addr_notifier = { #endif static const struct svc_serv_ops lockd_sv_ops = { - .svo_shutdown = svc_rpcb_cleanup, .svo_function = lockd, .svo_module = THIS_MODULE, }; |