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 redundant rcu_read_lock/unlock() in workqueue_congested()

The preempt_disable/enable() has already formed RCU read crtical
section, this commit therefore remove rcu_read_lock/unlock() in
workqueue_congested().

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

authored by

Zqiang and committed by
Tejun Heo
fd5081f4 b19a97d5

-2
-2
kernel/workqueue.c
··· 6046 6046 struct pool_workqueue *pwq; 6047 6047 bool ret; 6048 6048 6049 - rcu_read_lock(); 6050 6049 preempt_disable(); 6051 6050 6052 6051 if (cpu == WORK_CPU_UNBOUND) ··· 6055 6056 ret = !list_empty(&pwq->inactive_works); 6056 6057 6057 6058 preempt_enable(); 6058 - rcu_read_unlock(); 6059 6059 6060 6060 return ret; 6061 6061 }