workqueue: sanity check pool->cpu in wq_worker_sleeping()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 3 Jun 2014 07:33:08 +0000 (15:33 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 19 Jun 2014 16:32:27 +0000 (12:32 -0400)
commit92b69f509196fc5afc6a357511b864d372f42419
tree8b1a01763814cc6dee4f97f278e4c84656bcf18f
parentb62c075194f409ed887670af897ad22d44ed8ac8
workqueue: sanity check pool->cpu in wq_worker_sleeping()

In theory, pool->cpu is equals to @cpu in wq_worker_sleeping() after
worker->flags is checked.

And "pool->cpu != cpu" sanity check will help us if something wrong.

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