[PATCH 4/6] workqueue: commit worker to pool's concurrency setting atomically.

2014-04-12 Thread Lai Jiangshan
workers' concurrency setting need to be coordinate with pool's concurrency setting when create_worker()/destroy_worker()/cpu_inline() cpu_offline(). But create_worker() handles it non-atomically(not in a single pool->lock). This patch makes the behavior atomically. Now bind_list is used for

[PATCH 4/6] workqueue: commit worker to pool's concurrency setting atomically.

2014-04-12 Thread Lai Jiangshan
workers' concurrency setting need to be coordinate with pool's concurrency setting when create_worker()/destroy_worker()/cpu_inline() cpu_offline(). But create_worker() handles it non-atomically(not in a single pool-lock). This patch makes the behavior atomically. Now bind_list is used for