Преглед на файлове

defect 637
Fix saClmFinalize will block with threads

(Logical change 1.218)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@692 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake преди 21 години
родител
ревизия
703710282c
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      lib/clm.c

+ 0 - 3
lib/clm.c

@@ -362,14 +362,12 @@ saClmFinalize (
 		return (error);
 	}
 
-       pthread_mutex_lock (&clmInstance->dispatch_mutex);
        pthread_mutex_lock (&clmInstance->response_mutex);
 
 	/*
 	 * Another thread has already started finalizing
 	 */
 	if (clmInstance->finalize) {
-		pthread_mutex_unlock (&clmInstance->dispatch_mutex);
 		pthread_mutex_unlock (&clmInstance->response_mutex);
 		saHandleInstancePut (&clmHandleDatabase, clmHandle);
 		return (SA_ERR_BAD_HANDLE);
@@ -377,7 +375,6 @@ saClmFinalize (
 
 	clmInstance->finalize = 1;
 
-	pthread_mutex_unlock (&clmInstance->dispatch_mutex);
 	pthread_mutex_unlock (&clmInstance->response_mutex);
 
 	saHandleDestroy (&clmHandleDatabase, clmHandle);