]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: re-set NUMA node affinities if CPUs come online
authorJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 15:02:50 +0000 (09:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Oct 2020 15:02:50 +0000 (09:02 -0600)
commit7b2245560b24e0d7b83020719ec1d4cfa9dc1b0d
tree8b1265322ff776fe50d82f0f1cda707ba9c24b10
parent9bbc74ced18659198a8ce3ea366189fec396446a
io-wq: re-set NUMA node affinities if CPUs come online

We correctly set io-wq NUMA node affinities when the io-wq context is
setup, but if an entire node CPU set is offlined and then brought back
online, the per node affinities are broken. Ensure that we set them
again whenever a CPU comes online. This ensures that we always track
the right node affinity. The usual cpuhp notifiers are used to drive it.

Reported-by: Zhang Qiang <qiang.zhang@windriver.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c