]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: fix max-workers not correctly set on multi-node system
authorBeld Zhang <beldzhang@gmail.com>
Tue, 2 Nov 2021 18:32:08 +0000 (12:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 18:33:35 +0000 (12:33 -0600)
commit434944f13627eaecd6529f32221919b074a3d3d6
tree59d31c9a2da46dcd517237c73dca44575d9a3fe7
parentba9cd565f6ec7b0b4b65ad0ed6189deb3553f01e
io-wq: fix max-workers not correctly set on multi-node system

In io-wq.c:io_wq_max_workers(), new_count[] was changed right after each
node's value was set. This caused the following node getting the setting
of the previous one.

Returned values are copied from node 0.

Fixes: 8dcd68f4aee0 ("io-wq: provide a way to limit max number of workers")
Signed-off-by: Beld Zhang <beldzhang@gmail.com>
[axboe: minor fixups]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c