Re: [PATCH] io_uring/io-wq: fix worker accounting when canceling creation callbacks

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.io-uring,org.kernel.vger.linux-kernel
Message-ID <178683853100.1984298.3484031206299917415.b4-ty@b4>
On Tue, 11 Aug 2026 00:01:27 -0700, Vishnu Razdan wrote:
> create_worker_cb() reserves an io-wq worker slot only after its
> task-work callback runs. If the callback is canceled before then,
> io_worker_cancel_cb() still decrements acct->nr_workers. When an
> existing worker retires with its creation callback pending, that
> worker has already decremented the same account's worker count.
> 
> The resulting undercount permits worker creation beyond the account's
> configured limit. On an AST2600 OpenBMC system, an unchanged sensor
> daemon reached 4,291 threads with the original kernel. With an
> equivalent downstream fix, 25 passive samples under its normal
> workload showed 6-9 threads.
> 
> [...]

Applied, thanks!

[1/1] io_uring/io-wq: fix worker accounting when canceling creation callbacks
      commit: 297b5ccea4acacaa47c150f043bce695202afbf1

Best regards,
-- 
Jens Axboe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.