Stable Archive on
 help / color / Atom feed
* [PATCH 11/18] io-wq: assign NUMA node locality if appropriate
       [not found] <>
@ 2020-10-16 16:02 ` Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2020-10-16 16:02 UTC (permalink / raw)
  To: io-uring; +Cc: Jens Axboe, stable

There was an assumption that kthread_create_on_node() would properly set
NUMA affinities in terms of CPUs allowed, but it doesn't. Make sure we
do this when creating an io-wq context on NUMA.

Stefan Metzmacher <>
Signed-off-by: Jens Axboe <>
 fs/io-wq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/io-wq.c b/fs/io-wq.c
index 0a182f1333e8..149fd2f0927e 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -676,6 +676,7 @@ static bool create_io_worker(struct io_wq *wq, struct io_wqe *wqe, int index)
 		return false;
+	kthread_bind_mask(worker->task, cpumask_of_node(wqe->node));
 	hlist_nulls_add_head_rcu(&worker->nulls_node, &wqe->free_list);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2020-10-16 16:02 ` [PATCH 11/18] io-wq: assign NUMA node locality if appropriate Jens Axboe

Stable Archive on

Archives are clonable:
	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone