]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 17 Feb 2025 12:34:45 +0000 (05:34 -0700)
commit3d3bafd35fb422eb36cfc5709473cef7400588e7
tree22326f859a4dcd619e34504d4e65c09cd325621c
parent3c75635f8ed482300931327847c50068a865a648
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