aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-04-12 15:09:49 +0100
committerJens Axboe <axboe@kernel.dk>2022-04-24 18:02:46 -0600
commit8e6971a819dfd289e40642405a9200076f5dd17f (patch)
tree3d2d3d4a7885c5263b08d05e7af7e010a7629f2d /tools/perf/scripts/python
parentio_uring: add helper to return req to cache list (diff)
downloadlinux-8e6971a819dfd289e40642405a9200076f5dd17f.tar.gz
linux-8e6971a819dfd289e40642405a9200076f5dd17f.zip
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 <asml.silence@gmail.com> Link: https://lore.kernel.org/r/c3b3df9aeae4c2f7a53fd8386385742e4e261e77.1649771823.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions