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

cgroups: nokmem: error out on explicitly-set kmemcg limits #1939

Merged
merged 1 commit into from
Dec 4, 2018
Merged

cgroups: nokmem: error out on explicitly-set kmemcg limits #1939

merged 1 commit into from
Dec 4, 2018

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Nov 21, 2018

When built with nokmem we explicitly are disabling support for kmemcg,
but it is a strict specification requirement that if we cannot fulfil an
aspect of the container configuration that we error out.

Completely ignoring explicitly-requested kmemcg limits with nokmem would
undoubtably lead to problems.

Fixes #1938
Fixes: 6a2c155 ("libcontainer: ability to compile without kmem")
Signed-off-by: Aleksa Sarai asarai@suse.de

@cyphar cyphar added this to the 1.0.0 milestone Nov 21, 2018
@cyphar cyphar changed the title cgroups: error out if asked to explicitly set kmemcg limits under nokmem cgroups: nokmem: error out on explicitly-set kmemcg limits Nov 21, 2018
@cyphar
Copy link
Member Author

cyphar commented Nov 21, 2018

/cc @kolyshkin

@kolyshkin
Copy link
Contributor

LGTM except for a nitpick (s/fmt.Errorf/errors.New/)

@cyphar
Copy link
Member Author

cyphar commented Nov 29, 2018

Fixed.

@crosbymichael
Copy link
Member

crosbymichael commented Nov 29, 2018

LGTM

Approved with PullApprove

When built with nokmem we explicitly are disabling support for kmemcg,
but it is a strict specification requirement that if we cannot fulfil an
aspect of the container configuration that we error out.

Completely ignoring explicitly-requested kmemcg limits with nokmem would
undoubtably lead to problems.

Fixes: 6a2c155 ("libcontainer: ability to compile without kmem")
Signed-off-by: Aleksa Sarai <asarai@suse.de>
@mrunalp
Copy link
Contributor

mrunalp commented Dec 4, 2018

LGTM

Approved with PullApprove

1 similar comment
@crosbymichael
Copy link
Member

crosbymichael commented Dec 4, 2018

LGTM

Approved with PullApprove

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.

5 participants