diff options
| author | Lai Jiangshan <[email protected]> | 2014-05-20 09:46:31 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2014-05-20 14:59:31 +0000 |
| commit | da028469ba173e9c634b6ecf80bb0c69c7d1024d (patch) | |
| tree | 03fb68749d70240606157675161a47d9c367e213 /tools/perf/scripts/python | |
| parent | workqueue: destroy worker directly in the idle timeout handler (diff) | |
| download | kernel-da028469ba173e9c634b6ecf80bb0c69c7d1024d.tar.gz kernel-da028469ba173e9c634b6ecf80bb0c69c7d1024d.zip | |
workqueue: separate iteration role from worker_idr
worker_idr has the iteration (iterating for attached workers) and
worker ID duties. These two duties don't have to be tied together. We
can separate them and use a list for tracking attached workers and
iteration.
Before this separation, it wasn't possible to add rescuer workers to
worker_idr due to rescuer workers couldn't allocate ID dynamically
because ID-allocation depends on memory-allocation, which rescuer
can't depend on.
After separation, we can easily add the rescuer workers to the list for
iteration without any memory-allocation. It is required when we attach
the rescuer worker to the pool in later patch.
tj: Minor description updates.
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
