diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-31 12:08:29 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-02-15 06:19:48 +0100 |
commit | 3b64739fb928c34b13db6b5adcb0d3efb19e78be (patch) | |
tree | d3a0e8293b2da6d816c47939675e00da22c576d9 /fs/lockd/svc.c | |
parent | LockD: make NSM network namespace aware (diff) | |
download | linux-3b64739fb928c34b13db6b5adcb0d3efb19e78be.tar.xz linux-3b64739fb928c34b13db6b5adcb0d3efb19e78be.zip |
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.c | 4 |
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) struct svc_serv *serv = nlmsvc_rqst->rq_server; if (ln->nlmsvc_users) { - if (--ln->nlmsvc_users == 0) + if (--ln->nlmsvc_users == 0) { + nlm_shutdown_hosts_net(net); svc_shutdown_net(serv, net); + } } else { printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n", nlmsvc_task, net); |