diff options
author | Pavel Begunkov <[email protected]> | 2022-04-12 15:09:49 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-04-24 18:02:46 -0600 |
commit | 8e6971a819dfd289e40642405a9200076f5dd17f (patch) | |
tree | 3d2d3d4a7885c5263b08d05e7af7e010a7629f2d /tools/perf/scripts/python/sched-migration.py | |
parent | fa05457a603e7c8e97cd4cfb62de64bc9547ecb5 (diff) |
io_uring: optimise submission loop invariant
Instead of keeping @submitted in io_submit_sqes(), which for each
iteration requires comparison with the initial number of SQEs, store the
number of SQEs left to submit. We'll need nr only for when we're done
with SQE handling.
note: if we can't allocate a req for the first SQE we always has been
returning -EAGAIN to the userspace, save this behaviour by looking into
the cache in a slow path.
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/c3b3df9aeae4c2f7a53fd8386385742e4e261e77.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