io-wq: assign NUMA node locality if appropriate
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 16:13:07 +0000 (10:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:44 +0000 (09:25 -0600)
commita8b595b22d31f83b715511f59012f152a269d83b
treed16fad2aa6470eb99755f5fc02960e6fb86b0730
parent55cbc2564ab2fd555ec0fc39311a9cfb811d7da5
io-wq: assign NUMA node locality if appropriate

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.

Cc: stable@vger.kernel.org
Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c