From 8c112a419db6b7f5605d08d3aab964e4835eb8d9 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 18 May 2012 11:06:52 +0530 Subject: features/locks: insert_and_merge should not operate on blocked locks Change-Id: I9417fe28d6c2907b8160cd70c2d2c755731bbe67 BUG: 810502 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3365 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/locks/src/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/features/locks') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index d926a9c6f3c..af03cdf2a7a 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -783,6 +783,8 @@ __insert_and_merge (pl_inode_t *pl_inode, posix_lock_t *lock) struct _values v = { .locks = {0, 0, 0} }; list_for_each_entry_safe (conf, t, &pl_inode->ext_list, list) { + if (conf->blocked) + continue; if (!locks_overlap (conf, lock)) continue; -- cgit