io-wq: Drop intermediate step between pending list and active work
authorGabriel Krisman Bertazi <krisman@suse.de>
Tue, 16 Apr 2024 02:10:54 +0000 (22:10 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Apr 2024 14:20:32 +0000 (08:20 -0600)
commit24c3fc5c75c5b9d471783b4a4958748243828613
treeb5809806d2c09f9f7d8fd1ce05f6ef178539d652
parent068c27e32e51e94e4a9eb30ae85f4097a3602980
io-wq: Drop intermediate step between pending list and active work

next_work is only used to make the work visible for
cancellation. Instead, we can just directly write to cur_work before
dropping the acct_lock and avoid the extra hop.

Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20240416021054.3940-3-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c