Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/io-wq: pass io_wq to io_get_next_work()

The only caller has already determined this pointer, so let's skip
the redundant dereference.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Link: https://lore.kernel.org/r/20250128133927.3989681-7-max.kellermann@ionos.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Max Kellermann and committed by
Jens Axboe
7d568502 486ba4d8

+2 -3
+2 -3
io_uring/io-wq.c
··· 485 485 } 486 486 487 487 static struct io_wq_work *io_get_next_work(struct io_wq_acct *acct, 488 - struct io_worker *worker) 488 + struct io_wq *wq) 489 489 __must_hold(acct->lock) 490 490 { 491 491 struct io_wq_work_node *node, *prev; 492 492 struct io_wq_work *work, *tail; 493 493 unsigned int stall_hash = -1U; 494 - struct io_wq *wq = worker->wq; 495 494 496 495 wq_list_for_each(node, prev, &acct->work_list) { 497 496 unsigned int work_flags; ··· 575 576 * can't make progress, any work completion or insertion will 576 577 * clear the stalled flag. 577 578 */ 578 - work = io_get_next_work(acct, worker); 579 + work = io_get_next_work(acct, wq); 579 580 if (work) { 580 581 /* 581 582 * Make sure cancelation can find this, even before