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

multiple: clear up naming convention for cpu-set quota #12085

Merged

Conversation

Meulengracht
Copy link
Member

One of my leftovers from the cpu-quota implementation. We should use CPUSet instead of AllowedCPUs internally so it matches our quota option, only when writing it to systemd will we use AllowedCPUs

@Meulengracht Meulengracht added the Simple 😃 A small PR which can be reviewed quickly label Aug 29, 2022
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you for this cleanup!

Copy link
Contributor

@mardy mardy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

AllowedCPUs []int
AllowedCPUsSet bool
CPUSet []int
CPUSetSet bool
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, the wonders of the English language! :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll admit it I didn't feel great when I looked at this haha!

@Meulengracht Meulengracht merged commit 83a4be1 into canonical:master Sep 2, 2022
@Meulengracht Meulengracht deleted the bugfix/rename-allowedcpus branch March 28, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants