Revert "io_uring/sqpoll: retain test for whether the CPU is valid"
This reverts commit 376645a224
.
This commit is contained in:
parent
7ea1210e5d
commit
2da7fc1273
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue