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

Use EPERM instead of EIO when try setting irq affinity fails #331

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

liutgnu
Copy link
Contributor

@liutgnu liutgnu commented Oct 18, 2024

Kernel commit eb29369fa543e ("genirq/proc: Change the return value for set affinity permission error") changed the error number from EIO to EPERM when a specific irq failed to set affinity from userspace.

In addition, users have complained about EIO is misleading when setting affinity fails, however it just meaning "user cannot set affinity", so EPERM is better for that.

This patch will follow the kernel change, to unify the behaviour of irqbalance from the kernels which have not integrated the kernel commit mentioned above.

Kernel commit eb29369fa543e ("genirq/proc: Change the return value for
set affinity permission error") changed the error number from EIO to
EPERM when a specific irq failed to set affinity from userspace.

In addition, users have complained about EIO is misleading when
setting affinity fails, however it just meaning "user cannot set
affinity", so EPERM is better for that.

This patch will follow the kernel change, to unify the behaviour of
irqbalance from the kernels which have not integrated the kernel
commit mentioned above.

Signed-off-by: Tao Liu <ltao@redhat.com>
@nhorman nhorman merged commit b4b6f19 into Irqbalance:master Oct 18, 2024
10 checks passed
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.

2 participants