diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-12 11:30:04 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 11:30:04 -0700 |
commit | d2c1d40487bb1884be085c187233084f80df052d (patch) | |
tree | 11ea6d2f331ed75935d0e65643d657f74278d881 /init | |
parent | 493008a8e475771a2126e0ce95a73e35b371d277 (diff) | |
download | lwn-d2c1d40487bb1884be085c187233084f80df052d.tar.gz lwn-d2c1d40487bb1884be085c187233084f80df052d.zip |
workqueue: restructure __alloc_workqueue_key()
* Move initialization and linking of pool_workqueues into
init_and_link_pwq().
* Make the failure path use destroy_workqueue() once pool_workqueue
initialization succeeds.
These changes are to prepare for dynamic management of pool_workqueues
and don't introduce any functional changes.
While at it, convert list_del(&wq->list) to list_del_init() as a
precaution as scheduled changes will make destruction more complex.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions