Skip to content

Commit a5fc144

Browse files
Werkovaxboe
authored andcommitted
io_uring/sqpoll: Do not set PF_NO_SETAFFINITY on sqpoll threads
Users may specify a CPU where the sqpoll thread would run. This may conflict with cpuset operations because of strict PF_NO_SETAFFINITY requirement. That flag is unnecessary for polling "kernel" threads, see the reasoning in commit 01e68ce ("io_uring/io-wq: stop setting PF_NO_SETAFFINITY on io-wq workers"). Drop the flag on poll threads too. Fixes: 01e68ce ("io_uring/io-wq: stop setting PF_NO_SETAFFINITY on io-wq workers") Link: https://lore.kernel.org/all/20230314162559.pnyxdllzgw7jozgx@blackpad/ Signed-off-by: Michal Koutný <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent fa78033 commit a5fc144

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

io_uring/sqpoll.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ static int io_sq_thread(void *data)
233233
set_cpus_allowed_ptr(current, cpumask_of(sqd->sq_cpu));
234234
else
235235
set_cpus_allowed_ptr(current, cpu_online_mask);
236-
current->flags |= PF_NO_SETAFFINITY;
237236

238237
mutex_lock(&sqd->lock);
239238
while (1) {

0 commit comments

Comments
 (0)