Commit 8dbf28e4 authored by Stanislav Kinsbursky's avatar Stanislav Kinsbursky Committed by J. Bruce Fields

LockD: add debug message to start and stop functions

Signed-off-by: default avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 3d1221df
...@@ -266,6 +266,7 @@ static int lockd_up_net(struct svc_serv *serv, struct net *net) ...@@ -266,6 +266,7 @@ static int lockd_up_net(struct svc_serv *serv, struct net *net)
error = make_socks(serv, net); error = make_socks(serv, net);
if (error < 0) if (error < 0)
goto err_socks; goto err_socks;
dprintk("lockd_up_net: per-net data created; net=%p\n", net);
return 0; return 0;
err_socks: err_socks:
...@@ -283,6 +284,7 @@ static void lockd_down_net(struct svc_serv *serv, struct net *net) ...@@ -283,6 +284,7 @@ static void lockd_down_net(struct svc_serv *serv, struct net *net)
if (--ln->nlmsvc_users == 0) { if (--ln->nlmsvc_users == 0) {
nlm_shutdown_hosts_net(net); nlm_shutdown_hosts_net(net);
svc_shutdown_net(serv, net); svc_shutdown_net(serv, net);
dprintk("lockd_down_net: per-net data destroyed; net=%p\n", net);
} }
} else { } else {
printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n", printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n",
...@@ -360,6 +362,7 @@ static struct svc_serv *lockd_create_svc(void) ...@@ -360,6 +362,7 @@ static struct svc_serv *lockd_create_svc(void)
printk(KERN_WARNING "lockd_up: create service failed\n"); printk(KERN_WARNING "lockd_up: create service failed\n");
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
} }
dprintk("lockd_up: service created\n");
return serv; return serv;
} }
...@@ -426,7 +429,9 @@ lockd_down(struct net *net) ...@@ -426,7 +429,9 @@ lockd_down(struct net *net)
BUG(); BUG();
} }
kthread_stop(nlmsvc_task); kthread_stop(nlmsvc_task);
dprintk("lockd_down: service stopped\n");
svc_exit_thread(nlmsvc_rqst); svc_exit_thread(nlmsvc_rqst);
dprintk("lockd_down: service destroyed\n");
nlmsvc_task = NULL; nlmsvc_task = NULL;
nlmsvc_rqst = NULL; nlmsvc_rqst = NULL;
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment