mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-05 07:54:49 +00:00
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:
parent
983ee42d4c
commit
11453080bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user