Skip to content

libct/cg/fs/freezer: make sure to thaw on failure#2918

Merged
AkihiroSuda merged 1 commit intoopencontainers:masterfrom
kolyshkin:freeze-3
Apr 21, 2021
Merged

libct/cg/fs/freezer: make sure to thaw on failure#2918
AkihiroSuda merged 1 commit intoopencontainers:masterfrom
kolyshkin:freeze-3

Conversation

@kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented Apr 20, 2021

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.

This is a continuation of #2791 and #2774, addressing #2753 and similar bugs.

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]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/Err/retErr/ would be more Go-ish, but not a huge deal, so merging

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