Skip to content
Commit 742e8cd3 authored by Honglei Wang's avatar Honglei Wang Committed by Tejun Heo
Browse files

cgroup: freezer: don't change task and cgroups status unnecessarily



It's not necessary to adjust the task state and revisit the state
of source and destination cgroups if the cgroups are not in freeze
state and the task itself is not frozen.

And in this scenario, it wakes up the task who's not supposed to be
ready to run.

Don't do the unnecessary task state adjustment can help stop waking
up the task without a reason.

Signed-off-by: default avatarHonglei Wang <honglei.wang@oracle.com>
Acked-by: default avatarRoman Gushchin <guro@fb.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 1bb5ec2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment