Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udiskslinuxprovider: Move udev monitor in a separate thread #1221

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

tbzatek
Copy link
Member

@tbzatek tbzatek commented Nov 16, 2023

Traditionally the master uevent monitor was bound to a main thread. However with most of the D-Bus object machinery, interface updates, etc. being done in the same thread, lost uevents were spotted on resource-constrained systems.

Better to dedicate a new thread for incoming uevents that are sent to a probing thread right away, effectively acting as a storage queue.

Fixes #1133

Traditionally the master uevent monitor was bound to a main thread.
However with most of the D-Bus object machinery, interface updates,
etc. being done in the same thread, lost uevents were spotted
on resource-constrained systems.

Better to dedicate a new thread for incoming uevents that are sent
to a probing thread right away, effectively acting as a storage queue.
@tbzatek tbzatek merged commit 7a5681f into master Nov 21, 2023
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sometimes misses drive detection with lots of drives
2 participants