diff --git a/backport-Hotplug-may-occur-again-during-sleep-so-wait-until-t.patch b/backport-Hotplug-may-occur-again-during-sleep-so-wait-until-t.patch new file mode 100644 index 0000000..5eced5a --- /dev/null +++ b/backport-Hotplug-may-occur-again-during-sleep-so-wait-until-t.patch @@ -0,0 +1,28 @@ +From 518d81cdd8c54c820d16afb73658753b46032676 Mon Sep 17 00:00:00 2001 +From: SuperSix173 +Date: Tue, 6 Apr 2021 10:26:17 +0800 +Subject: [PATCH] Hotplug may occur again during sleep, so wait until there is + no hotplug + +Conflict:NA +Reference:https://github.com/Irqbalance/irqbalance/commit/518d81cdd8c54c820d16afb73658753b46032676 +--- + irqbalance.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/irqbalance.c b/irqbalance.c +index 458bb07..3f94847 100644 +--- a/irqbalance.c ++++ b/irqbalance.c +@@ -285,7 +285,7 @@ gboolean scan(gpointer data __attribute__((unused))) + + + /* cope with cpu hotplug -- detected during /proc/interrupts parsing */ +- if (need_rescan || need_rebuild) { ++ while (need_rescan || need_rebuild) { + int try_times = 0; + + need_rescan = 0; +-- +2.23.0 + diff --git a/irqbalance.spec b/irqbalance.spec index 7e14fb7..5e90fc5 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -1,7 +1,7 @@ Summary: A dynamic adaptive IRQ balancing daemon Name: irqbalance Version: 1.7.0 -Release: 9 +Release: 10 Epoch: 3 License: GPLv2 Source0: https://github.com/Irqbalance/irqbalance/archive/irqbalance-%{version}.tar.gz @@ -28,6 +28,7 @@ Patch6003: backport-add-irq-hotplug-feature-for-irqbalance.patch Patch6004: backport-Add-log-for-hotplug-appropriately.patch Patch6005: backport-Add-hot-pull-method-for-irqbalance.patch Patch6006: backport-Also-fetch-node-info-for-non-PCI-devices.patch +Patch6007: backport-Hotplug-may-occur-again-during-sleep-so-wait-until-t.patch %description Irqbalance is a daemon to help balance the cpu load generated by @@ -85,6 +86,12 @@ fi /sbin/chkconfig --del %{name} >/dev/null 2>&1 || : %changelog +* Thu Jan 5 2023 qinyu - 3:1.7.0-10 +- Type:bugfix +- ID:NA +- SUG:restart +- DESC: Hotplug may occur again during sleep, so wait until there is no hotplug + * Thu Jan 5 2023 qinyu - 3:1.7.0-9 - Type:bugfix - ID:NA