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
This commit is contained in:
Pavan Sondur 2009-12-03 16:10:16 +00:00 committed by Anand V. Avati
parent f4983bb29b
commit cec1f78d42

View File

@ -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: