mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
dmeventd: move var set to locked section
It should not change the actual code flow, however make the set of the current_event variable inside locked section.
This commit is contained in:
parent
aa7f2ac954
commit
29630b2d7f
@ -1044,9 +1044,9 @@ static void *_monitor_thread(void *arg)
|
|||||||
_unlock_mutex();
|
_unlock_mutex();
|
||||||
|
|
||||||
_do_process_event(thread);
|
_do_process_event(thread);
|
||||||
thread->current_events = 0; /* Current events processed */
|
|
||||||
|
|
||||||
_lock_mutex();
|
_lock_mutex();
|
||||||
|
thread->current_events = 0; /* Current events processed */
|
||||||
thread->processing = 0;
|
thread->processing = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user