summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/inodelk.c8
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: