]> www.infradead.org Git - users/hch/xfs.git/commit
workqueue: Make rescuer initialization as the last step of the creation of a new wq
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Thu, 4 Jul 2024 03:49:11 +0000 (11:49 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 5 Jul 2024 19:14:40 +0000 (09:14 -1000)
commitc5178e6ca6c8063edc103b75f410add7e4565e63
tree00c1422d3635fd30c807f8219d70b076245f87df
parentc3138f3881920d1391e435aa4144b929d5237617
workqueue: Make rescuer initialization as the last step of the creation of a new wq

For early wq allocation, rescuer initialization is the last step of the
creation of a new wq.  Make the behavior the same for all allocations.

Prepare for initializing rescuer's affinities with the default pwq's
affinities.

Prepare for moving the whole workqueue initializing procedure into
wq_pool_mutex and cpu hotplug locks.

Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c