diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-02-17 05:25:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-17 15:34:50 +0300 |
commit | 94a4274bb6ebc5b4293559304d0f00928de0d8c0 (patch) | |
tree | d1c357565cfff75155063cb82401439b5fd3c906 /scripts/generate_rust_analyzer.py | |
parent | bcf8a0293a019bb0c4aebafdebe9a1e7a923249a (diff) | |
download | linux-94a4274bb6ebc5b4293559304d0f00928de0d8c0.tar.xz |
io_uring: pass struct io_tw_state by value
8e5b3b89ecaf ("io_uring: remove struct io_tw_state::locked") removed the
only field of io_tw_state but kept it as a task work callback argument
to "forc[e] users not to invoke them carelessly out of a wrong context".
Passing the struct io_tw_state * argument adds a few instructions to all
callers that can't inline the functions and see the argument is unused.
So pass struct io_tw_state by value instead. Since it's a 0-sized value,
it can be passed without any instructions needed to initialize it.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250217022511.1150145-2-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions