diff --git a/0001-support-nvme-subsystem-to-be-tuned.patch b/0001-support-nvme-subsystem-to-be-tuned.patch new file mode 100644 index 0000000000000000000000000000000000000000..cf1a85ffec9f539ba3d3b649afa4af93bab4b649 --- /dev/null +++ b/0001-support-nvme-subsystem-to-be-tuned.patch @@ -0,0 +1,25 @@ +From 52bc058e7acea20e8c7aa1d7a03cfb3a4e4439e3 Mon Sep 17 00:00:00 2001 +From: hongrongxuan +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 + diff --git a/tuned.spec b/tuned.spec index de98371e6c2209bdf047078209e20efa28b886c9..7c5f50f0b422357015fb82261ef9ce5ba4ea0336 100644 --- a/tuned.spec +++ b/tuned.spec @@ -1,7 +1,7 @@ Summary: A system tuning service for Linux Name: tuned Version: 2.10.0 -Release: 10 +Release: 11 License: GPLv2+ Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}.tar.gz#/%{name}-%{version}%{?prerel2}.tar.gz URL: http://www.tuned-project.org/ @@ -41,6 +41,7 @@ Patch9003: 0040-Fix-pickle-provider.patch Patch9004: 0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch Patch9005: 0074-fix-disk-plugin-plugout-problem.patch Patch9006: 0099-Fix-checking-for-None-values.patch +Patch9007: 0001-support-nvme-subsystem-to-be-tuned.patch Provides: tuned-gtk = %{version}-%{release} @@ -302,6 +303,12 @@ fi %{_mandir}/man7/%{name}-profiles-nfv-host.7* %changelog +* Fri Aug 4 2023 hongrongxuan - 2.10.0-11 +- Type:other +- ID:NA +- SUG:NA +- DESC: support nvme subsystem to be tuned + * Mon Jul 24 2023 wangce - 2.10.0-10 - Type:other - ID:NA