diff options
author | 2020-07-07 16:36:22 +0300 | |
---|---|---|
committer | 2020-07-07 12:00:03 -0600 | |
commit | b2edc0a77fac19bbdef63cedb2ea34aec1a9a499 (patch) | |
tree | 31005a549f2c11fb048380fa94d84739ecb2fffc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | io_uring: remove nr_events arg from iopoll_check() (diff) | |
download | wireguard-linux-b2edc0a77fac19bbdef63cedb2ea34aec1a9a499.tar.xz wireguard-linux-b2edc0a77fac19bbdef63cedb2ea34aec1a9a499.zip |
io_uring: don't burn CPU for iopoll on exit
First of all don't spin in io_ring_ctx_wait_and_kill() on iopoll.
Requests won't complete faster because of that, but only lengthen
io_uring_release().
The same goes for offloaded cleanup in io_ring_exit_work() -- it
already has waiting loop, don't do blocking active spinning.
For that, pass min=0 into io_iopoll_[try_]reap_events(), so it won't
actively spin. Leave the function if io_do_iopoll() there can't
complete a request to sleep in io_ring_exit_work().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
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