public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/daemons/dmeventd/plugins/lvm2 dmeventd_lvm.c
@ 2012-02-01 20:12 mornfall
  0 siblings, 0 replies; 2+ messages in thread
From: mornfall @ 2012-02-01 20:12 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall@sourceware.org	2012-02-01 20:11:58

Modified files:
	daemons/dmeventd/plugins/lvm2: dmeventd_lvm.c 

Log message:
	Remove a dubious log message ("another thread is handling an event") from LVM
	dmeventd plugins. Fixes RHBZ 771419.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c	2011/12/22 15:55:21	1.7
+++ LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c	2012/02/01 20:11:58	1.8
@@ -82,10 +82,7 @@
 
 void dmeventd_lvm2_lock(void)
 {
-	if (pthread_mutex_trylock(&_event_mutex)) {
-		syslog(LOG_NOTICE, "Another thread is handling an event. Waiting...");
-		pthread_mutex_lock(&_event_mutex);
-	}
+	pthread_mutex_lock(&_event_mutex);
 }
 
 void dmeventd_lvm2_unlock(void)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* LVM2/daemons/dmeventd/plugins/lvm2 dmeventd_lvm.c
@ 2010-03-30 14:38 zkabelac
  0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2010-03-30 14:38 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2010-03-30 14:38:56

Modified files:
	daemons/dmeventd/plugins/lvm2: dmeventd_lvm.c 

Log message:
	Release pool in the same reversed order
	and with lowered priority after _memlock_dec.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2

--- LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c	2010/01/21 22:15:46	1.1
+++ LVM2/daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c	2010/03/30 14:38:56	1.2
@@ -105,11 +105,11 @@
 	pthread_mutex_lock(&_register_mutex);
 
 	if (!--_register_count) {
-		dm_pool_destroy(_mem_pool);
-		_mem_pool = NULL;
 		lvm2_run(_lvm_handle, "_memlock_dec");
 		lvm2_exit(_lvm_handle);
 		_lvm_handle = NULL;
+		dm_pool_destroy(_mem_pool);
+		_mem_pool = NULL;
 	}
 
 	pthread_mutex_unlock(&_register_mutex);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-01 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 20:12 LVM2/daemons/dmeventd/plugins/lvm2 dmeventd_lvm.c mornfall
  -- strict thread matches above, loose matches on Subject: below --
2010-03-30 14:38 zkabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).