diff options
author | Pavel Begunkov <[email protected]> | 2022-04-12 15:09:50 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-04-24 18:02:46 -0600 |
commit | 1cd15904b6e836f46e925229da8950785252b315 (patch) | |
tree | 5645157241a28996a2c34c7d0e93439044d22bb4 /tools/perf/scripts/python/sched-migration.py | |
parent | 8e6971a819dfd289e40642405a9200076f5dd17f (diff) |
io_uring: optimise submission left counting
Considering all inlining io_submit_sqe() is huge and usually ends up
calling some other functions.
We decrement @left in io_submit_sqes() just before calling
io_submit_sqe() and use it later after the call. Considering how huge
io_submit_sqe() is, there is not much hope @left will be treated
gracefully by compilers.
Decrement it after the call, not only it's easier on register spilling
and probably saves stack write/read, but also at least for x64 uses
CPU flags set by the dec instead of doing (read/write and tests).
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/807f9a276b54ee8ff4e42e2b78721484f1c71743.1649771823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions