On 11/2/21 11:36 AM, beld zhang wrote: > in io-wq.c: io_wq_max_workers(), new_count[] was changed right after > each node's value was set. > this cause the next node got the setting of the previous one, > following patch fixed it. > > returned values are copied from node 0. Thanks! I've applied this, with some minor changes: - Your email client is not honoring tabs and spaces - Improved the commit message a bit - Use a separate bool to detect first node, instead of assuming nodes are numbered from 0..N - Move last copy out of RCU read lock protection - Add fixes line Here's the end result: https://git.kernel.dk/cgit/linux-block/commit/?h=io_uring-5.16&id=71c9ce27bb57c59d8d7f5298e730c8096eef3d1f -- Jens Axboe