From 11453080bba31cb13aa638555f8cb193fd7ccbbe Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 28 Sep 2007 01:30:50 +0000 Subject: [PATCH] lock_algo queues lock requests rather than ignoring them if an exclusive lock is held on a resource. This led to stale processes trying to acquire an exclusive lock forever. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1461 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/lck.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exec/lck.c b/exec/lck.c index 7e5aa30b..aa095205 100644 --- a/exec/lck.c +++ b/exec/lck.c @@ -1016,9 +1016,7 @@ void lock_algorithm ( /* * Exclusive lock granted */ - if (resource_lock->lock_mode == SA_LCK_PR_LOCK_MODE) { - lock_queue (resource, resource_lock); - } + lock_queue (resource, resource_lock); } else { /* * Exclusive lock not granted