Revert "io_uring/sqpoll: do not allow pinning outside of cpuset"
This reverts commit 33068eaaff
.
This commit is contained in:
parent
2da7fc1273
commit
0a13b31c06
1 changed files with 1 additions and 4 deletions
|
@ -56,7 +56,6 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/mman.h>
|
#include <linux/mman.h>
|
||||||
#include <linux/percpu.h>
|
#include <linux/percpu.h>
|
||||||
#include <linux/cpuset.h>
|
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/blkdev.h>
|
#include <linux/blkdev.h>
|
||||||
#include <linux/bvec.h>
|
#include <linux/bvec.h>
|
||||||
|
@ -8775,12 +8774,10 @@ static int io_sq_offload_create(struct io_ring_ctx *ctx,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (p->flags & IORING_SETUP_SQ_AFF) {
|
if (p->flags & IORING_SETUP_SQ_AFF) {
|
||||||
struct cpumask allowed_mask;
|
|
||||||
int cpu = p->sq_thread_cpu;
|
int cpu = p->sq_thread_cpu;
|
||||||
|
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
cpuset_cpus_allowed(current, &allowed_mask);
|
if (cpu >= nr_cpu_ids || !cpu_online(cpu))
|
||||||
if (!cpumask_test_cpu(cpu, &allowed_mask))
|
|
||||||
goto err_sqpoll;
|
goto err_sqpoll;
|
||||||
sqd->sq_cpu = cpu;
|
sqd->sq_cpu = cpu;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue