public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted
@ 2010-02-05 20:09 Jeff Layton
  2010-02-08 21:19 ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Layton @ 2010-02-05 20:09 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

nsm_reboot_lookup takes a reference to the nsm_handle that it returns,
but nlm_host_rebooted never releases that reference.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
---
 fs/lockd/host.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 4600c20..bb464d1 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -479,8 +479,8 @@ again:	mutex_lock(&nlm_host_mutex);
 			}
 		}
 	}
-
 	mutex_unlock(&nlm_host_mutex);
+	nsm_release(nsm);
 }
 
 /*
-- 
1.6.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-02-08 21:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 20:09 [PATCH] lockd: release reference to nsm_handle in nlm_host_rebooted Jeff Layton
2010-02-08 21:19 ` J. Bruce Fields
2010-02-08 21:34   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox