io_uring/sqpoll: Do not set PF_NO_SETAFFINITY on sqpoll threads
authorMichal Koutný <mkoutny@suse.com>
Tue, 14 Mar 2023 18:33:32 +0000 (19:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Mar 2023 12:50:59 +0000 (06:50 -0600)
commita5fc1441af7719e93dc7a638a960befb694ade89
treec9f57714001f8fda9d75fc699d1f0be00b75bbc5
parentfa780334a8c392d959ae05eb19f2410b3a1e6cb0
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 01e68ce08a30 ("io_uring/io-wq: stop setting
PF_NO_SETAFFINITY on io-wq workers"). Drop the flag on poll threads too.

Fixes: 01e68ce08a30 ("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ý <mkoutny@suse.com>
Link: https://lore.kernel.org/r/20230314183332.25834-1-mkoutny@suse.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/sqpoll.c