io_uring/io-wq: add io_worker.acct pointer
authorMax Kellermann <max.kellermann@ionos.com>
Tue, 28 Jan 2025 13:39:21 +0000 (14:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Feb 2025 02:52:08 +0000 (19:52 -0700)
commit7d0f7a3c9c4f9b8faea56f9ebc35568c7f8a686c
tree8025b7b7853346fef967c7f0f40aa640142c896c
parent14ed10013bb4b0641ee4a819760ab2b4de22b8c7
io_uring/io-wq: add io_worker.acct pointer

This replaces the `IO_WORKER_F_BOUND` flag.  All code that checks this
flag is not interested in knowing whether this is a "bound" worker;
all it does with this flag is determine the `io_wq_acct` pointer.  At
the cost of an extra pointer field, we can eliminate some fragile
pointer arithmetic.  In turn, the `create_index` and `index` fields
are not needed anymore.

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