]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring/io-wq: remove io_wq_for_each_worker() return value
authorJens Axboe <axboe@kernel.dk>
Mon, 5 Jan 2026 18:42:05 +0000 (11:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Jan 2026 22:39:20 +0000 (15:39 -0700)
The only use of this helper is to iterate all of the workers, and
hence all callers will pass in a func that always returns false to do
that. As none of the callers use the return value, get rid of it.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c

index 6c5ef629e59ada8dba9228c4df1fe91254b32f30..9fd9f6ab722c787abbd70251e9c09e6cff44a61b 100644 (file)
@@ -947,16 +947,13 @@ static bool io_acct_for_each_worker(struct io_wq_acct *acct,
        return ret;
 }
 
-static bool io_wq_for_each_worker(struct io_wq *wq,
+static void io_wq_for_each_worker(struct io_wq *wq,
                                  bool (*func)(struct io_worker *, void *),
                                  void *data)
 {
-       for (int i = 0; i < IO_WQ_ACCT_NR; i++) {
+       for (int i = 0; i < IO_WQ_ACCT_NR; i++)
                if (io_acct_for_each_worker(&wq->acct[i], func, data))
-                       return true;
-       }
-
-       return false;
+                       break;
 }
 
 static bool io_wq_worker_wake(struct io_worker *worker, void *data)