Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.6] libct/cg/fs/freezer: make sure to thaw on failure #47

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

kolyshkin
Copy link
Collaborator

@kolyshkin kolyshkin commented Apr 21, 2021

(this is a backport of upstream PR opencontainers/runc#2918)

Function (*FreezerGroup).Set(path, configs.Frozen) has a few paths
where in can return an error. In any case, if an error is returned,
we failed to freeze, and we need to thaw to avoid leaving the cgroup
in a stuck state.

Function (*FreezerGroup).Set has a few paths where in can return an
error. In any case, if an error is returned, we failed to freeze,
and we need to thaw to avoid leaving the cgroup in a stuck state.

Signed-off-by: Kir Kolyshkin <[email protected]>
(cherry picked from commit fcd7fe8)
Signed-off-by: Kir Kolyshkin <[email protected]>
@haircommander
Copy link
Collaborator

LGTM

@mrunalp mrunalp merged commit 77a6f3c into projectatomic:rhaos-4.6 Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants