cluster: RHEL55 - gfs_controld: GETLK should free unused resource

David Teigland teigland at fedoraproject.org
Tue Oct 27 19:20:59 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=315e5b8746fbfa4bf61d7b3168b1947e8ab42a1f
Commit:        315e5b8746fbfa4bf61d7b3168b1947e8ab42a1f
Parent:        1ca3956cf96030f5c599ae2d32ed113061df491e
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Wed Jul 22 15:29:53 2009 -0500
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Tue Oct 27 14:20:22 2009 -0500

gfs_controld: GETLK should free unused resource

bz 513285

If a plock resource does not exist in gfs_controld,
(no posix locks exist on a file), fcntl(GETLK) on that file will
cause the resource to be created, but not removed afterward.

Signed-off-by: David Teigland <teigland at redhat.com>
---
 group/gfs_controld/plock.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/group/gfs_controld/plock.c b/group/gfs_controld/plock.c
index 34c4c21..b03e77f 100644
--- a/group/gfs_controld/plock.c
+++ b/group/gfs_controld/plock.c
@@ -886,6 +886,7 @@ static void do_get(struct mountgroup *mg, struct dlm_plock_info *in,
 		rv = 0;
 
 	write_result(mg, in, rv);
+	put_resource(r);
 }
 
 static void __receive_plock(struct mountgroup *mg, struct dlm_plock_info *in,


More information about the cluster-commits mailing list