Skip to content
Commit 71c9ce27 authored by Beld Zhang's avatar Beld Zhang Committed by Jens Axboe
Browse files

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: 2e480058 ("io-wq: provide a way to limit max number of workers")
Signed-off-by: default avatarBeld Zhang <beldzhang@gmail.com>
[axboe: minor fixups]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9881024a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment