From: Lai Jiangshan Date: Tue, 20 May 2014 09:46:30 +0000 (+0800) Subject: workqueue: destroy worker directly in the idle timeout handler X-Git-Tag: omap-for-v3.16/fixes-against-rc1~83^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3347fc9f36e7e5d3ebe504fc4034745b5d8971d3;p=pandora-kernel.git 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 --- Reading git-diff-tree failed