diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-12-03 16:10:16 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-03 13:54:54 -0800 |
commit | cec1f78d42f49f35448d81c944afb9afae19c959 (patch) | |
tree | f4a76149c3138b5bff526acad975532783a0ca9d /xlators/features/locks/src/inodelk.c | |
parent | f4983bb29be027e40fcd379d0a018b87cf82fc85 (diff) |
features/locks: Fix inodelk leak when issued an UNLOCK.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 222 (Enhance Internal locks to support multilple domains and rewrite inodelks)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=222
Diffstat (limited to 'xlators/features/locks/src/inodelk.c')
-rw-r--r-- | xlators/features/locks/src/inodelk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/locks/src/inodelk.c b/xlators/features/locks/src/inodelk.c index 019604484d5..41228c887d0 100644 --- a/xlators/features/locks/src/inodelk.c +++ b/xlators/features/locks/src/inodelk.c @@ -347,10 +347,13 @@ grant_blocked_inode_locks (xlator_t *this, pl_inode_t *pl_inode, pl_inode_lock_t if (list_empty (&dom->blocked_inodelks)) { gf_log (this->name, GF_LOG_TRACE, - "No locks for domain: %s", dom->domain); + "No blocked locks to be granted for domain: %s", dom->domain); + goto out; } __grant_blocked_inode_locks (this, pl_inode, dom); +out: + __destroy_inode_lock (lock); } @@ -422,9 +425,6 @@ release_inode_locks_of_transport (xlator_t *this, pl_dom_list_t *dom, l->owner); - __destroy_inode_lock (l); - - } } unlock: |