From b0f456cdd55ebfa0498db75157b544ad88904d03 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 9 Oct 2009 08:00:22 +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(+) (limited to 'xlators') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index dbda5f23f..5f115f6fa 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -380,6 +380,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], dom); } -- cgit