From 73027dae835fc968dc443294fc8c109110168d37 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 9 Oct 2009 08:00:23 +0000 Subject: Add INIT_LIST_HEAD which was left out in the previous commit Signed-off-by: Anand V. Avati 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 --- xlators/features/locks/src/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 1ce67437576..08dc451e16e 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]); } -- cgit