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
This commit is contained in:
Steven Dake 2007-09-28 01:30:50 +00:00
parent 983ee42d4c
commit 11453080bb

View File

@ -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