Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

workqueue: Remove rcu_read_lock/unlock() in wq_watchdog_timer_fn()

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>

authored by

Zqiang and committed by
Tejun Heo
cda2b2d6 fd5081f4

-4
-4
kernel/workqueue.c
··· 7544 7544 if (!thresh) 7545 7545 return; 7546 7546 7547 - rcu_read_lock(); 7548 - 7549 7547 for_each_pool(pool, pi) { 7550 7548 unsigned long pool_ts, touched, ts; 7551 7549 ··· 7584 7586 7585 7587 7586 7588 } 7587 - 7588 - rcu_read_unlock(); 7589 7589 7590 7590 if (lockup_detected) 7591 7591 show_all_workqueues();