diff options
author | 2021-06-15 16:47:57 +0100 | |
---|---|---|
committer | 2021-06-15 15:44:34 -0600 | |
commit | 3c19966d3710dbe5a44658c532052f11d797aecb (patch) | |
tree | 8c89977de6f8f1ec044ab5ba763b294b7813def7 /tools/perf/scripts/python/stackcollapse.py | |
parent | io_uring: switch !DRAIN fast path when possible (diff) | |
download | wireguard-linux-3c19966d3710dbe5a44658c532052f11d797aecb.tar.xz wireguard-linux-3c19966d3710dbe5a44658c532052f11d797aecb.zip |
io_uring: shove more drain bits out of hot path
Place all drain_next logic into io_drain_req(), so it's never executed
if there was no drained requests before. The only thing we need is to
set ->drain_active if we see a request with IOSQE_IO_DRAIN, do that in
io_init_req() where flags are definitely in registers.
Also, all drain-related code is encapsulated in io_drain_req(), makes it
cleaner.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/68bf4f7395ddaafbf1a26bd97b57d57d45a9f900.1623772051.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions