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

Fix handling of add uevents during scanning #318

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

tweksteen
Copy link
Member

Ensure that the enumeration is completed before processing any uevent. This is to avoid a race where the kernel is still enumerating the devices and send the uevent while the parent is being authorised.

To not lose these uevents, we store them in a backlog that is processed at the end of the scanning.

Fixes the test case described in #315

Ensure that the enumeration is completed before processing any uevent.
This is to avoid a race where the kernel is still enumerating the devices
and send the uevent while the parent is being authorised.

To not lose these uevents, we store them in a backlog that is processed
at the end of the scanning.
@tweksteen tweksteen requested a review from dkopecek July 23, 2019 12:55
@dkopecek dkopecek requested a review from radosroka July 23, 2019 13:08
Copy link
Member

@dkopecek dkopecek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

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.

None yet

2 participants