support nvme subsystem to be tuned
This commit is contained in:
parent
b5d4908fda
commit
f8ead79c3f
25
0001-support-nvme-subsystem-to-be-tuned.patch
Normal file
25
0001-support-nvme-subsystem-to-be-tuned.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
Summary: A system tuning service for Linux
|
Summary: A system tuning service for Linux
|
||||||
Name: tuned
|
Name: tuned
|
||||||
Version: 2.10.0
|
Version: 2.10.0
|
||||||
Release: 10
|
Release: 11
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}.tar.gz#/%{name}-%{version}%{?prerel2}.tar.gz
|
Source0: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}.tar.gz#/%{name}-%{version}%{?prerel2}.tar.gz
|
||||||
URL: http://www.tuned-project.org/
|
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
|
Patch9004: 0070-plugin_disk-Fix-checking-the-removable-attribute-on-.patch
|
||||||
Patch9005: 0074-fix-disk-plugin-plugout-problem.patch
|
Patch9005: 0074-fix-disk-plugin-plugout-problem.patch
|
||||||
Patch9006: 0099-Fix-checking-for-None-values.patch
|
Patch9006: 0099-Fix-checking-for-None-values.patch
|
||||||
|
Patch9007: 0001-support-nvme-subsystem-to-be-tuned.patch
|
||||||
|
|
||||||
|
|
||||||
Provides: tuned-gtk = %{version}-%{release}
|
Provides: tuned-gtk = %{version}-%{release}
|
||||||
@ -302,6 +303,12 @@ fi
|
|||||||
%{_mandir}/man7/%{name}-profiles-nfv-host.7*
|
%{_mandir}/man7/%{name}-profiles-nfv-host.7*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 4 2023 hongrongxuan <hongrongxuan@huawei.com> - 2.10.0-11
|
||||||
|
- Type:other
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: support nvme subsystem to be tuned
|
||||||
|
|
||||||
* Mon Jul 24 2023 wangce <wangce@uniontech.com> - 2.10.0-10
|
* Mon Jul 24 2023 wangce <wangce@uniontech.com> - 2.10.0-10
|
||||||
- Type:other
|
- Type:other
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user