diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-05-20 11:46:30 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-20 16:59:31 +0200 |
commit | 3347fc9f36e7e5d3ebe504fc4034745b5d8971d3 (patch) | |
tree | b34e2b7870748208668f7cef162d9d8f489ced55 /kernel/workqueue_internal.h | |
parent | workqueue: async worker destruction (diff) | |
download | linux-3347fc9f36e7e5d3ebe504fc4034745b5d8971d3.tar.xz linux-3347fc9f36e7e5d3ebe504fc4034745b5d8971d3.zip |
workqueue: destroy worker directly in the idle timeout handler
Since destroy_worker() doesn't need to sleep nor require manager_mutex,
destroy_worker() can be directly called in the idle timeout
handler, it helps us remove POOL_MANAGE_WORKERS and
maybe_destroy_worker() and simplify the manage_workers()
After POOL_MANAGE_WORKERS is removed, worker_thread() doesn't
need to test whether it needs to manage after processed works.
So we can remove the test branch.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'kernel/workqueue_internal.h')
0 files changed, 0 insertions, 0 deletions