diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-29 01:39:54 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-21 03:04:02 +0300 |
commit | 8110c1a6212e430a84edd2b83fe9043def8b743e (patch) | |
tree | 3b7df2807aebe7cec855965c2a077898651e81cf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c6ca97b30c47c7ad36107d3764bb4dc37026d171 (diff) | |
download | linux-8110c1a6212e430a84edd2b83fe9043def8b743e.tar.xz |
io_uring: add support for IORING_SETUP_CLAMP
Some applications like to start small in terms of ring size, and then
ramp up as needed. This is a bit tricky to do currently, since we don't
advertise the max ring size.
This adds IORING_SETUP_CLAMP. If set, and the values for SQ or CQ ring
size exceed what we support, then clamp them at the max values instead
of returning -EINVAL. Since we return the chosen ring sizes after setup,
no further changes are needed on the application side. io_uring already
changes the ring sizes if the application doesn't ask for power-of-two
sizes, for example.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions