Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
tuned
plugin_disk_fix_plug_in_out_problem.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plugin_disk_fix_plug_in_out_problem.patch of Package tuned
From: Tomas Korbar <tkorbar@redhat.com> Subject: fix disk plugin/plugout problem References: Bugfix found by git HEAD review Patch-Mainline: v2.11.0-rc.1 Git-commit: a2219675f29fae94540868bf63f36f62c61b92c7 Git-repo: https://github.com/openSUSE/tuned.git when udev sends remove event it does not send any device attributes with it so _device_is_supported check must be omitted Resolves: rhbz#1595156 Signed-off-by: Thomas Renninger <trenn@suse.com> diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py index 1de1257..56e56f4 100644 --- a/tuned/plugins/plugin_disk.py +++ b/tuned/plugins/plugin_disk.py @@ -50,7 +50,7 @@ class DiskPlugin(hotplug.Plugin): self._hardware_inventory.unsubscribe(self) def _hardware_events_callback(self, event, device): - if self._device_is_supported(device): + if self._device_is_supported(device) or event == "remove": super(DiskPlugin, self)._hardware_events_callback(event, device) def _added_device_apply_tuning(self, instance, device_name):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor