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)
commit43c01fbefdf110e8713d6c0ff71055f06b9888a0
tree8b1265322ff776fe50d82f0f1cda707ba9c24b10
parentff5771613cd7b3a76cd16cb54aa81d30d3c11d48
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