]> git.karo-electronics.de Git - linux-beck.git/commit
workqueue: use system_highpri_wq for highpri workers in rebind_workers()
authorJoonsoo Kim <js1304@gmail.com>
Wed, 15 Aug 2012 14:25:40 +0000 (23:25 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 16 Aug 2012 21:21:15 +0000 (14:21 -0700)
commite2b6a6d570f070aa90ac00d2d10b1488512f8520
tree4f61d435e55f764b1bd990540d533fd68d9fbaa2
parent1aabe902ca3638d862bf0dad5a697d3a8e046b0a
workqueue: use system_highpri_wq for highpri workers in rebind_workers()

In rebind_workers(), we do inserting a work to rebind to cpu for busy workers.
Currently, in this case, we use only system_wq. This makes a possible
error situation as there is mismatch between cwq->pool and worker->pool.

To prevent this, we should use system_highpri_wq for highpri worker
to match theses. This implements it.

tj: Rephrased comment a bit.

Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c