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

hotplug: do not report ENOENT errors on device remove #578

Merged
merged 1 commit into from Dec 7, 2023

Conversation

yarda
Copy link
Contributor

@yarda yarda commented Dec 6, 2023

It requires slight internal plugin API change, thus 3rd party plugins needs updating.

Namely the 'command_set' methods for devices were extended by the 'remove' boolean parameter which is set to 'True' on the hotplug remove event. Then the method should silent the ENOENT errors where appropriate, because the device interface may be removed (by kernel/udev) before the method finishes.

Resolves: RHEL-11342

Copy link
Contributor

@jmencak jmencak left a comment

Choose a reason for hiding this comment

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

I want through the code and the changes make sense to me. Thank you for fixing this not only for the [disk] plug-in. I've also tested the new code with the [disk] plug-in and removing a block disk device when TuneD was running. No ERRORs were reported.

Copy link
Contributor

@zacikpa zacikpa left a comment

Choose a reason for hiding this comment

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

Looks ok, just one note:

tuned/plugins/plugin_audio.py Outdated Show resolved Hide resolved
It requires slight internal plugin API change, thus 3rd party plugins
needs updating.

Namely the 'command_set' methods for devices were extended by the
'remove' boolean parameter which is set to 'True' on the hotplug remove
event. Then the method should silent the ENOENT errors where
appropriate, because the device interface may be removed (by
kernel/udev) before the method finishes.

Resolves: RHEL-11342

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
@yarda yarda merged commit 954bc46 into redhat-performance:master Dec 7, 2023
14 of 16 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.

None yet

3 participants