aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/svc.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-31 06:08:29 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-15 00:19:48 -0500
commit3b64739fb928c34b13db6b5adcb0d3efb19e78be (patch)
treed3a0e8293b2da6d816c47939675e00da22c576d9 /fs/lockd/svc.c
parent0e1cb5c0aad1c37a4eee6db45f52c0b3869db2cc (diff)
Lockd: shutdown NLM hosts in network namespace context
Lockd now managed in network namespace context. And this patch introduces network namespace related NLM hosts shutdown in case of releasing per-net Lockd resources. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r--fs/lockd/svc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index 90dec426bfd8..2774e1013b34 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -281,8 +281,10 @@ static void lockd_down_net(struct net *net)
281 struct svc_serv *serv = nlmsvc_rqst->rq_server; 281 struct svc_serv *serv = nlmsvc_rqst->rq_server;
282 282
283 if (ln->nlmsvc_users) { 283 if (ln->nlmsvc_users) {
284 if (--ln->nlmsvc_users == 0) 284 if (--ln->nlmsvc_users == 0) {
285 nlm_shutdown_hosts_net(net);
285 svc_shutdown_net(serv, net); 286 svc_shutdown_net(serv, net);
287 }
286 } else { 288 } else {
287 printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n", 289 printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n",
288 nlmsvc_task, net); 290 nlmsvc_task, net);