[Devel] [PATCH] LockD: call per-net shutdown on every global shutdown call
Stanislav Kinsbursky
skinsbursky at parallels.com
Wed Apr 18 06:18:54 PDT 2012
Per-net LockD shutdown call must be called regardless of global nlm users
counter.
Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>
---
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 1ead075..2ad3715 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -381,10 +381,9 @@ lockd_down(struct net *net)
{
mutex_lock(&nlmsvc_mutex);
if (nlmsvc_users) {
- if (--nlmsvc_users) {
- lockd_down_net(net);
+ lockd_down_net(net);
+ if (--nlmsvc_users)
goto out;
- }
} else {
printk(KERN_ERR "lockd_down: no users! task=%p\n",
nlmsvc_task);
More information about the Devel
mailing list