Commit 26fb7e3d authored by Waiman Long's avatar Waiman Long Committed by Tejun Heo

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: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 40911d44
...@@ -4804,7 +4804,7 @@ static void link_pwq(struct pool_workqueue *pwq) ...@@ -4804,7 +4804,7 @@ static void link_pwq(struct pool_workqueue *pwq)
pwq->work_color = wq->work_color; pwq->work_color = wq->work_color;
/* link in @pwq */ /* link in @pwq */
list_add_rcu(&pwq->pwqs_node, &wq->pwqs); list_add_tail_rcu(&pwq->pwqs_node, &wq->pwqs);
} }
/* obtain a pool matching @attr and create a pwq associating the pool and @wq */ /* obtain a pool matching @attr and create a pwq associating the pool and @wq */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment