workqueue: Link pwq's into wq->pwqs from oldest to newest
authorWaiman Long <longman@redhat.com>
Thu, 8 Feb 2024 16:10:11 +0000 (11:10 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 8 Feb 2024 19:22:30 +0000 (09:22 -1000)
commit26fb7e3dda4c16e2cfe2164a1e7315a9386602db
tree32fb8878cb0ae92a6934c5e5cecdb8c19aba2249
parent40911d4457f288da21b45437a52e1b0cbe5b8508
workqueue: Link pwq's into wq->pwqs from oldest to newest

Add a new pwq into the tail of wq->pwqs so that pwq iteration will
start from the oldest pwq to the newest. This ordering will facilitate
the inclusion of ordered workqueues in a wq_unbound_cpumask update.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c