diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-04-25 10:23:16 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-05-31 20:29:44 -0400 |
commit | 8dbf28e495337b0c66657e3e278ae0ff175b7140 (patch) | |
tree | f38d8d72ef7845e7064ec4e46665eaef8fed26e0 /fs/lockd/svc.c | |
parent | 3d1221dfa95ca876535c5947626f3834343e8fbc (diff) |
LockD: add debug message to start and stop functions
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r-- | fs/lockd/svc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index b47bf7755008..80938fda67e0 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -266,6 +266,7 @@ static int lockd_up_net(struct svc_serv *serv, struct net *net) | |||
266 | error = make_socks(serv, net); | 266 | error = make_socks(serv, net); |
267 | if (error < 0) | 267 | if (error < 0) |
268 | goto err_socks; | 268 | goto err_socks; |
269 | dprintk("lockd_up_net: per-net data created; net=%p\n", net); | ||
269 | return 0; | 270 | return 0; |
270 | 271 | ||
271 | err_socks: | 272 | err_socks: |
@@ -283,6 +284,7 @@ static void lockd_down_net(struct svc_serv *serv, struct net *net) | |||
283 | if (--ln->nlmsvc_users == 0) { | 284 | if (--ln->nlmsvc_users == 0) { |
284 | nlm_shutdown_hosts_net(net); | 285 | nlm_shutdown_hosts_net(net); |
285 | svc_shutdown_net(serv, net); | 286 | svc_shutdown_net(serv, net); |
287 | dprintk("lockd_down_net: per-net data destroyed; net=%p\n", net); | ||
286 | } | 288 | } |
287 | } else { | 289 | } else { |
288 | printk(KERN_ERR "lockd_down_net: no users! task=%p, net=%p\n", | 290 | 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 | printk(KERN_WARNING "lockd_up: create service failed\n"); | 362 | printk(KERN_WARNING "lockd_up: create service failed\n"); |
361 | return ERR_PTR(-ENOMEM); | 363 | return ERR_PTR(-ENOMEM); |
362 | } | 364 | } |
365 | dprintk("lockd_up: service created\n"); | ||
363 | return serv; | 366 | return serv; |
364 | } | 367 | } |
365 | 368 | ||
@@ -426,7 +429,9 @@ lockd_down(struct net *net) | |||
426 | BUG(); | 429 | BUG(); |
427 | } | 430 | } |
428 | kthread_stop(nlmsvc_task); | 431 | kthread_stop(nlmsvc_task); |
432 | dprintk("lockd_down: service stopped\n"); | ||
429 | svc_exit_thread(nlmsvc_rqst); | 433 | svc_exit_thread(nlmsvc_rqst); |
434 | dprintk("lockd_down: service destroyed\n"); | ||
430 | nlmsvc_task = NULL; | 435 | nlmsvc_task = NULL; |
431 | nlmsvc_rqst = NULL; | 436 | nlmsvc_rqst = NULL; |
432 | out: | 437 | out: |