Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use EPERM instead of EIO when try setting irq affinity fails
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>
- Loading branch information