commit | d8ca83e68c8c7efd8e5920a046d5c576b08609f0 | [log] [tgz] |
---|---|---|
author | Lai Jiangshan <laijs@cn.fujitsu.com> | Wed Jul 16 14:56:36 2014 +0800 |
committer | Tejun Heo <tj@kernel.org> | Fri Jul 18 18:46:11 2014 -0400 |
tree | b243af14a608395c8e86f08099599b5f86c6c824 | |
parent | f7537df5206929c6a6f878da7c8ecd4143793376 [diff] |
workqueue: wake regular worker if need_more_worker() when rescuer leave the pool We don't need to wake up regular worker when nr_running==1, so need_more_worker() is sufficient here. And need_more_worker() gives us better readability due to the name of "keep_working()" implies the rescuer should keep working now but the rescuer is actually leaving. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>