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>
Thu, 15 Oct 2020 17:50:08 +0000 (11:50 -0600)
commit0f1eba214c81d6f53a3472e8a103fb5f7a401912
treecb1f1fb5299cd59e1250e9fa09a54d0c60602b4e
parente7572b1b3ef7ebf0fd9ea52ee2d6bb528838d63c
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