summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorAnand Avati <avati@dev.gluster.com>2009-10-09 08:00:23 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-09 06:37:26 -0700
commit73027dae835fc968dc443294fc8c109110168d37 (patch)
treeeea7a895387b283f2e83d0f79953c53bc1974594 /xlators/features
parent7ef987661626ee2e9de033470bafb7c864e01fe1 (diff)
Add INIT_LIST_HEAD which was left out in the previous commit
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 297 (Posix locks cannot handle a single unlock over multiple held locks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=297
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index 1ce6743..08dc451 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -426,6 +426,7 @@ __insert_and_merge (pl_inode_t *pl_inode, posix_lock_t *lock)
if (!v.locks[i])
continue;
+ INIT_LIST_HEAD (&v.locks[i]->list);
__insert_and_merge (pl_inode,
v.locks[i]);
}