1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Don't take out the lvm_thread_lock at startup - it only protects the jobs list.

DEBUGLOG() message now print threadid rather than PID which is more useful.
This commit is contained in:
Patrick Caulfield 2005-03-09 14:08:11 +00:00
parent 5cd6bbbff1
commit a6c23d8b8b
3 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,8 @@ Version 2.01.07 - 8th March 2005
clvmd fixes: make FDs close-on-exec clvmd fixes: make FDs close-on-exec
gulm unlocks VG & orphan locks at startup in case they are stale gulm unlocks VG & orphan locks at startup in case they are stale
gulm now unlocks VG & orphan locks if client dies. gulm now unlocks VG & orphan locks if client dies.
Don't take out lvm thread lock at startup, it only protects the
jobs list.
Version 2.01.06 - 1st March 2005 Version 2.01.06 - 1st March 2005
================================ ================================

View File

@ -1598,7 +1598,6 @@ static void *lvm_thread_fn(void *arg)
int using_gulm = (int)arg; int using_gulm = (int)arg;
DEBUGLOG("LVM thread function started\n"); DEBUGLOG("LVM thread function started\n");
pthread_mutex_lock(&lvm_thread_mutex);
/* Ignore SIGUSR1 & 2 */ /* Ignore SIGUSR1 & 2 */
sigemptyset(&ss); sigemptyset(&ss);
@ -1608,7 +1607,6 @@ static void *lvm_thread_fn(void *arg)
/* Initialise the interface to liblvm */ /* Initialise the interface to liblvm */
init_lvm(using_gulm); init_lvm(using_gulm);
pthread_mutex_unlock(&lvm_thread_mutex);
/* Now wait for some actual work */ /* Now wait for some actual work */
for (;;) { for (;;) {

View File

@ -95,7 +95,7 @@ struct local_client {
}; };
#ifdef DEBUG #ifdef DEBUG
#define DEBUGLOG(fmt, args...) fprintf(stderr, "CLVMD[%d]: %ld ", getpid(), time(NULL) ); fprintf(stderr, fmt, ## args) #define DEBUGLOG(fmt, args...) fprintf(stderr, "CLVMD[%x]: %ld ", (int)pthread_self(), time(NULL) ); fprintf(stderr, fmt, ## args)
#else #else
#define DEBUGLOG(fmt, args...) #define DEBUGLOG(fmt, args...)
#endif #endif