public inbox for
help / color / mirror / Atom feed
From: David Teigland <>
Subject: cluster: RHEL5 - gfs_controld: GETLK should free unused resource
Date: Wed, 22 Jul 2009 20:45:00 -0000	[thread overview]
Message-ID: <> (raw)

Commit:        f106b915e18e2323f549fbbf0e956c0ee884fb2e
Parent:        c0a0ac5b6358a0f641a1d5e739307e7957e7ba6a
Author:        David Teigland <>
AuthorDate:    Wed Jul 22 15:29:53 2009 -0500
Committer:     David Teigland <>
CommitterDate: Wed Jul 22 15:35:59 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 <>
 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,

                 reply	other threads:[~2009-07-22 20:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).