master - dmeventd: rework locking code
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9156c5d0888bf95b79d931682b51fc63c96ba236 Commit: 9156c5d0888bf95b79d931682b51fc63c96ba236 Parent: 466a1c72b7f24be4c932b503b3f8a3fb50a2eda5 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Oct 22 15:47:53 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Oct 22 22:39:24 2015 +0200
dmeventd: rework locking code
Redesign threading code:
- plugin registration runs within its new created thread for improved parallel usage.
- wait task is created just once and used during whole plugin lifetime.
- event thread is based over 'events' filter being set - when filter is 0, such thread is 'unused'.
- event loop is simplified.
- timeout thread is never signaling 'processing' thread.
- pending of events filter cnange is properly reported and running event thread is signalled when possible.
- helgrind is not reporting problems.
--- WHATS_NEW_DM | 1 + daemons/dmeventd/dmeventd.c | 497 ++++++++++++++++++++----------------------- 2 files changed, 231 insertions(+), 267 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.110 - ====================================== + New design for thread cooperation in dmeventd. Dmeventd read device status with 'noflush'. Dmeventd closes control device when no device is monitored. Thin plugin for dmeventd improved percentage usage.
daemons/dmeventd/dmeventd.c +230 -267
729 lines not on this page · raw message