]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob
126af92adb585c5497e70f43c878513a2ac4aa0b
[thirdparty/kernel/stable-queue.git] /
1 From 517cd3032fa424c6b79e26858b0457cb5bfae7dd Mon Sep 17 00:00:00 2001
2 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3 Date: Wed, 3 Apr 2024 16:29:12 +0200
4 Subject: Revert "workqueue: Don't call cpumask_test_cpu() with -1 CPU in wq_update_node_max_active()"
5
6 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7
8 This reverts commit 9fc557d489f8163c1aabcb89114b8eba960f4097 which is commit
9 15930da42f8981dc42c19038042947b475b19f47 upstream.
10
11 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 ---
13 kernel/workqueue.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/kernel/workqueue.c
17 +++ b/kernel/workqueue.c
18 @@ -1506,7 +1506,7 @@ static void wq_update_node_max_active(st
19
20 lockdep_assert_held(&wq->mutex);
21
22 - if (off_cpu >= 0 && !cpumask_test_cpu(off_cpu, effective))
23 + if (!cpumask_test_cpu(off_cpu, effective))
24 off_cpu = -1;
25
26 total_cpus = cpumask_weight_and(effective, cpu_online_mask);