diff options
| author | Roman Gushchin <[email protected]> | 2021-05-10 21:39:46 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2021-05-11 01:31:03 +0000 |
| commit | f4f809f66b7545b89bff4b132cdb37adc2d2c157 (patch) | |
| tree | a2af60079b8afcd3618db7fe87c580e3b2329ec2 /tools/perf/scripts/python/sched-migration.py | |
| parent | tests/cgroup: test cgroup.kill (diff) | |
| download | kernel-f4f809f66b7545b89bff4b132cdb37adc2d2c157.tar.gz kernel-f4f809f66b7545b89bff4b132cdb37adc2d2c157.zip | |
cgroup: inline cgroup_task_freeze()
After the introduction of the cgroup.kill there is only one call site
of cgroup_task_freeze() left: cgroup_exit(). cgroup_task_freeze() is
currently taking rcu_read_lock() to read task's cgroup flags, but
because it's always called with css_set_lock locked, the rcu protection
is excessive.
Simplify the code by inlining cgroup_task_freeze().
v2: fix build
Signed-off-by: Roman Gushchin <[email protected]>
Reviewed-by: Shakeel Butt <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
