1
0
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:
Zdenek Kabelac 2023-08-31 18:45:30 +02:00
parent aa7f2ac954
commit 29630b2d7f

View File

@ -1044,9 +1044,9 @@ static void *_monitor_thread(void *arg)
_unlock_mutex();
_do_process_event(thread);
thread->current_events = 0; /* Current events processed */
_lock_mutex();
thread->current_events = 0; /* Current events processed */
thread->processing = 0;
/*