Revert "io_uring/sqpoll: retain test for whether the CPU is valid"

This reverts commit 376645a224.
This commit is contained in:
Ksawlii 2024-11-24 00:22:53 +01:00
parent 7ea1210e5d
commit 2da7fc1273

View file

@ -8779,8 +8779,6 @@ static int io_sq_offload_create(struct io_ring_ctx *ctx,
int cpu = p->sq_thread_cpu;
ret = -EINVAL;
if (cpu >= nr_cpu_ids || !cpu_online(cpu))
goto err_sqpoll;
cpuset_cpus_allowed(current, &allowed_mask);
if (!cpumask_test_cpu(cpu, &allowed_mask))
goto err_sqpoll;