Skip to content
Snippets Groups Projects
Commit 0997aa54 authored by Felix Moessbauer's avatar Felix Moessbauer Committed by Jens Axboe
Browse files

io_uring/io-wq: do not allow pinning outside of cpuset


The io worker threads are userland threads that just never exit to the
userland. By that, they are also assigned to a cgroup (the group of the
creating task).

When changing the affinity of the io_wq thread via syscall, we must only
allow cpumasks within the limits defined by the cpuset controller of the
cgroup (if enabled).

Fixes: da64d6db ("io_uring: One wqe per wq")
Signed-off-by: default avatarFelix Moessbauer <felix.moessbauer@siemens.com>
Link: https://lore.kernel.org/r/20240910171157.166423-2-felix.moessbauer@siemens.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 90bfb28d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment