tuned/0001-support-nvme-subsystem-to-be-tuned.patch
2023-08-04 11:37:58 +08:00

26 lines
919 B
Diff

From 52bc058e7acea20e8c7aa1d7a03cfb3a4e4439e3 Mon Sep 17 00:00:00 2001
From: hongrongxuan <hongrongxuan@huawei.com>
Date: Fri, 4 Aug 2023 11:22:51 +0800
Subject: [PATCH] support nvme subsystem to be tuned
---
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 b651374..30766ec 100644
--- a/tuned/plugins/plugin_disk.py
+++ b/tuned/plugins/plugin_disk.py
@@ -41,7 +41,7 @@ class DiskPlugin(hotplug.Plugin):
return device.device_type == "disk" and \
device.attributes.get("removable", None) == b"0" and \
(device.parent is None or \
- device.parent.subsystem in ["scsi", "virtio", "xen"])
+ device.parent.subsystem in ["scsi", "virtio", "xen", "nvme"])
def _hardware_events_init(self):
self._hardware_inventory.subscribe(self, "block", self._hardware_events_callback)
--
2.27.0