Просмотр исходного кода

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

Steven Dake 18 лет назад
Родитель
Сommit
11453080bb
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      exec/lck.c

+ 1 - 3
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