]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
io_uring/io-wq: fix incorrect io_wq_for_each_worker() termination logic
authorJens Axboe <axboe@kernel.dk>
Mon, 5 Jan 2026 14:42:48 +0000 (07:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jan 2026 21:37:33 +0000 (14:37 -0700)
commite0392a10c9e80a3991855a81317da3039fcbe32c
treec1e305da0324b5ea97e474eda66e35560becd547
parent70eafc743016b1df73e00fd726ffedd44ce1bdd3
io_uring/io-wq: fix incorrect io_wq_for_each_worker() termination logic

A previous commit added this helper, and had it terminate if false is
returned from the handler. However, that is completely opposite, it
should abort the loop if true is returned.

Fix this up by having io_wq_for_each_worker() keep iterating as long
as false is returned, and only abort if true is returned.

Cc: stable@vger.kernel.org
Fixes: 751eedc4b4b7 ("io_uring/io-wq: move worker lists to struct io_wq_acct")
Reported-by: Lewis Campbell <info@lewiscampbell.tech>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c