]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
workqueue: Remove rcu_read_lock/unlock() in wq_watchdog_timer_fn()
authorZqiang <qiang.zhang@linux.dev>
Thu, 4 Sep 2025 11:31:33 +0000 (19:31 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 4 Sep 2025 16:18:00 +0000 (06:18 -1000)
The wq_watchdog_timer_fn() is executed in the softirq context, this
is already in the RCU read critical section, this commit therefore
remove rcu_read_lock/unlock() in wq_watchdog_timer_fn().

Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c

index 831754e900714d7db2f537d27128f2ea0693648e..63b2685c2cb4f945704a3302c7d47fbb0127796a 100644 (file)
@@ -7544,8 +7544,6 @@ static void wq_watchdog_timer_fn(struct timer_list *unused)
        if (!thresh)
                return;
 
-       rcu_read_lock();
-
        for_each_pool(pool, pi) {
                unsigned long pool_ts, touched, ts;
 
@@ -7587,8 +7585,6 @@ static void wq_watchdog_timer_fn(struct timer_list *unused)
 
        }
 
-       rcu_read_unlock();
-
        if (lockup_detected)
                show_all_workqueues();