workqueue: Remove the mb() pair between wq_worker_sleeping() and insert_work()
authorLai Jiangshan <laijs@linux.alibaba.com>
Thu, 23 Dec 2021 12:31:37 +0000 (20:31 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 12 Jan 2022 17:37:28 +0000 (07:37 -1000)
commit21b195c05cf6a6cc49777d6992772bcf01502186
tree75a1bf2a43d192af12ed37fd7cebaccbbedc6a74
parentdaadb3bd0e8d3e317e36bc2c1542e86c528665e5
workqueue: Remove the mb() pair between wq_worker_sleeping() and insert_work()

In wq_worker_sleeping(), the access to worklist is protected by the
pool->lock, so the memory barrier is unneeded.

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