diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2019-12-30 21:24:45 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2020-01-20 17:04:02 -0700 |
| commit | ee7d46d9db19ded7b7222af95add63606318a480 (patch) | |
| tree | a57c640fdd439cc5b39c61471017faa884a58de6 /tools/perf/scripts/python | |
| parent | io_uring: clamp to_submit in io_submit_sqes() (diff) | |
| download | linux-ee7d46d9db19ded7b7222af95add63606318a480.tar.gz linux-ee7d46d9db19ded7b7222af95add63606318a480.zip | |
io_uring: optimise head checks in io_get_sqring()
A user may ask to submit more than there is in the ring, and then
io_uring will submit as much as it can. However, in the last iteration
it will allocate an io_kiocb and immediately free it. It could do
better and adjust @to_submit to what is in the ring.
And since the ring's head is already checked here, there is no need to
do it in the loop, spamming with smp_load_acquire()'s barriers
Signed-off-by: Pavel Begunkov <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
