diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2013-03-20 10:52:30 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-20 10:52:30 -0700 |
commit | 951a078a5285ad31bc22e190616ad54b78fac992 (patch) | |
tree | 0718bffc99fd05a49f1a3ce86cd01a99e5661c14 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 6a092dfd51e5af9b321d683d4b4eddc79e2606ed (diff) |
workqueue: kick a worker in pwq_adjust_max_active()
If pwq_adjust_max_active() changes max_active from 0 to
saved_max_active, it needs to wakeup worker. This is already done by
thaw_workqueues().
If pwq_adjust_max_active() increases max_active for an unbound wq,
while not strictly necessary for correctness, it's still desirable to
wake up a worker so that the requested concurrency level is reached
sooner.
Move wake_up_worker() call from thaw_workqueues() to
pwq_adjust_max_active() so that it can handle both of the above two
cases. This also makes thaw_workqueues() simpler.
tj: Updated comments and description.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions