|
@@ -132,6 +132,8 @@ lockd(void *vrqstp)
|
|
{
|
|
{
|
|
int err = 0;
|
|
int err = 0;
|
|
struct svc_rqst *rqstp = vrqstp;
|
|
struct svc_rqst *rqstp = vrqstp;
|
|
|
|
+ struct net *net = &init_net;
|
|
|
|
+ struct lockd_net *ln = net_generic(net, lockd_net_id);
|
|
|
|
|
|
/* try_to_freeze() is called from svc_recv() */
|
|
/* try_to_freeze() is called from svc_recv() */
|
|
set_freezable();
|
|
set_freezable();
|
|
@@ -176,6 +178,8 @@ lockd(void *vrqstp)
|
|
if (nlmsvc_ops)
|
|
if (nlmsvc_ops)
|
|
nlmsvc_invalidate_all();
|
|
nlmsvc_invalidate_all();
|
|
nlm_shutdown_hosts();
|
|
nlm_shutdown_hosts();
|
|
|
|
+ cancel_delayed_work_sync(&ln->grace_period_end);
|
|
|
|
+ locks_end_grace(&ln->lockd_manager);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -270,8 +274,6 @@ static void lockd_down_net(struct svc_serv *serv, struct net *net)
|
|
if (ln->nlmsvc_users) {
|
|
if (ln->nlmsvc_users) {
|
|
if (--ln->nlmsvc_users == 0) {
|
|
if (--ln->nlmsvc_users == 0) {
|
|
nlm_shutdown_hosts_net(net);
|
|
nlm_shutdown_hosts_net(net);
|
|
- cancel_delayed_work_sync(&ln->grace_period_end);
|
|
|
|
- locks_end_grace(&ln->lockd_manager);
|
|
|
|
svc_shutdown_net(serv, net);
|
|
svc_shutdown_net(serv, net);
|
|
dprintk("lockd_down_net: per-net data destroyed; net=%p\n", net);
|
|
dprintk("lockd_down_net: per-net data destroyed; net=%p\n", net);
|
|
}
|
|
}
|