diff options
| author | Tejun Heo <[email protected]> | 2012-10-16 15:03:14 -0700 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2012-10-20 16:33:08 -0700 |
| commit | b4d18311d37b0b1b370a1ef3e4de92b97930f0a8 (patch) | |
| tree | ca43c69c402de2cf67dc45e45ab90f86b489ff9c /tools/perf/scripts/python/Perf-Trace-Util/lib | |
| parent | 8755ade683241e8c6b8fe8d22d0ae35041a3dc51 (diff) | |
cgroup_freezer: prepare update_if_frozen() for locking change
Locking will change such that migration can happen while
freezer_read/write() is in progress. This means that
update_if_frozen() can no longer assume that all tasks in the cgroup
coform to the current freezer state - newly migrated tasks which
haven't finished freezer_attach() yet might be in any state.
This patch updates update_if_frozen() such that it no longer verifies
task states against freezer state. It now simply decides whether
FREEZING stage is complete.
This removal of verification makes it meaningless to call from
freezer_change_state(). Drop it and move the fast exit test from
freezer_read() - the only left caller - to update_if_frozen().
Signed-off-by: Tejun Heo <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Rafael J. Wysocki <[email protected]>
Cc: Li Zefan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions