30 lines
1019 B
Diff
30 lines
1019 B
Diff
From a2219675f29fae94540868bf63f36f62c61b92c7 Mon Sep 17 00:00:00 2001
|
|
From: Tomas Korbar <tkorbar@redhat.com>
|
|
Date: Wed, 12 Dec 2018 14:48:09 +0100
|
|
Subject: [PATCH 074/124] fix disk plugin/plugout problem
|
|
|
|
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
|
|
---
|
|
tuned/plugins/plugin_disk.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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):
|
|
--
|
|
1.8.3.1
|
|
|