Commit 0997aa5
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: da64d6d ("io_uring: One wqe per wq")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Link: https://lore.kernel.org/r/20240910171157.166423-2-felix.moessbauer@siemens.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 90bfb28 commit 0997aa5
1 file changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
1322 | 1323 | | |
1323 | 1324 | | |
1324 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1325 | 1329 | | |
1326 | 1330 | | |
1327 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1328 | 1335 | | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1333 | 1345 | | |
1334 | 1346 | | |
1335 | | - | |
| 1347 | + | |
| 1348 | + | |
1336 | 1349 | | |
1337 | 1350 | | |
1338 | 1351 | | |
| |||
0 commit comments