This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dlm: master - dlm_controld: GETLK should free unused resource


Gitweb:        http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=041ee1d89567c842287dfc0bf1f707535fa03bbe
Commit:        041ee1d89567c842287dfc0bf1f707535fa03bbe
Parent:        cdda56dcbb999b3ffd6dd080fa97f8dd8eefcc14
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Wed Jul 22 15:29:53 2009 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Wed Jul 22 15:34:46 2009 -0500

dlm_controld: GETLK should free unused resource

bz 513285

If a plock resource does not exist in dlm_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@redhat.com>
---
 group/dlm_controld/plock.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/group/dlm_controld/plock.c b/group/dlm_controld/plock.c
index 77e6c71..85628ce 100644
--- a/group/dlm_controld/plock.c
+++ b/group/dlm_controld/plock.c
@@ -731,6 +731,7 @@ static void do_get(struct lockspace *ls, struct dlm_plock_info *in,
 		rv = 0;
 
 	write_result(ls, in, rv);
+	put_resource(r);
 }
 
 static void save_message(struct lockspace *ls, struct dlm_header *hd, int len,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]