Commit 71c9ce2
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: 2e48005 ("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>1 parent 9881024 commit 71c9ce2
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
1311 | | - | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
1312 | 1314 | | |
1313 | 1315 | | |
1314 | 1316 | | |
| |||
1319 | 1321 | | |
1320 | 1322 | | |
1321 | 1323 | | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1322 | 1327 | | |
1323 | 1328 | | |
1324 | 1329 | | |
| |||
1327 | 1332 | | |
1328 | 1333 | | |
1329 | 1334 | | |
1330 | | - | |
| 1335 | + | |
| 1336 | + | |
1331 | 1337 | | |
1332 | 1338 | | |
1333 | | - | |
1334 | 1339 | | |
1335 | 1340 | | |
| 1341 | + | |
1336 | 1342 | | |
1337 | 1343 | | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1338 | 1348 | | |
1339 | 1349 | | |
1340 | 1350 | | |
| |||
0 commit comments