]> 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)
commitf05ecb9efb79b02e9e8708d463ffc2a3603fdee5
tree8b1265322ff776fe50d82f0f1cda707ba9c24b10
parent0062a2de73117440e7de7f2dfd7a181482fbdc38
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