workqueue: Change the comments of the synchronization about the idle_list
authorLai Jiangshan <laijs@linux.alibaba.com>
Thu, 23 Dec 2021 12:31:38 +0000 (20:31 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 12 Jan 2022 17:39:15 +0000 (07:39 -1000)
commit2c1f1a9180bfacbc3c8e5b10075640cc810cf9c0
tree57e246d0e51bb8a65d680dd5189efb58bb98ea2c
parent21b195c05cf6a6cc49777d6992772bcf01502186
workqueue: Change the comments of the synchronization about the idle_list

The access to idle_list in wq_worker_sleeping() is changed to be
protected by pool->lock, so the comments above idle_list can be changed
to "L:" which is the meaning of "access with pool->lock held".

And the outdated comments in wq_worker_sleeping() is removed since
the function is not called with rq lock held any more, idle_list is
dereferenced with pool lock now.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c