diff options
-rw-r--r-- | fs/lockd/mon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index 8e68e799293c..38255455563d 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c | |||
@@ -249,10 +249,15 @@ retry: | |||
249 | atomic_inc(&pos->sm_count); | 249 | atomic_inc(&pos->sm_count); |
250 | kfree(nsm); | 250 | kfree(nsm); |
251 | nsm = pos; | 251 | nsm = pos; |
252 | dprintk("lockd: found nsm_handle for %s (%s), cnt %d\n", | ||
253 | pos->sm_name, pos->sm_addrbuf, | ||
254 | atomic_read(&pos->sm_count)); | ||
252 | goto found; | 255 | goto found; |
253 | } | 256 | } |
254 | if (nsm) { | 257 | if (nsm) { |
255 | list_add(&nsm->sm_link, &nsm_handles); | 258 | list_add(&nsm->sm_link, &nsm_handles); |
259 | dprintk("lockd: created nsm_handle for %s (%s)\n", | ||
260 | nsm->sm_name, nsm->sm_addrbuf); | ||
256 | goto found; | 261 | goto found; |
257 | } | 262 | } |
258 | spin_unlock(&nsm_lock); | 263 | spin_unlock(&nsm_lock); |
@@ -291,6 +296,8 @@ void nsm_release(struct nsm_handle *nsm) | |||
291 | if (atomic_dec_and_lock(&nsm->sm_count, &nsm_lock)) { | 296 | if (atomic_dec_and_lock(&nsm->sm_count, &nsm_lock)) { |
292 | list_del(&nsm->sm_link); | 297 | list_del(&nsm->sm_link); |
293 | spin_unlock(&nsm_lock); | 298 | spin_unlock(&nsm_lock); |
299 | dprintk("lockd: destroyed nsm_handle for %s (%s)\n", | ||
300 | nsm->sm_name, nsm->sm_addrbuf); | ||
294 | kfree(nsm); | 301 | kfree(nsm); |
295 | } | 302 | } |
296 | } | 303 | } |