redhat-performance / tuned

Tuning Profile Delivery Mechanism for Linux
GNU General Public License v2.0
814 stars 178 forks source link

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

Closed yarda closed 10 months ago

yarda commented 10 months ago

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