diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-08-09 15:04:08 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-23 22:07:59 +0300 |
commit | 864ea921b0300fe5a4db9136b7e307e94b369530 (patch) | |
tree | 3f62cdf2545e515b9d31f223989fb775cf19726a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8724dd8c833832c398c3578340374f45d6d9dd0d (diff) | |
download | linux-864ea921b0300fe5a4db9136b7e307e94b369530.tar.xz |
io_uring: refactor io_alloc_req
Replace the main if of io_flush_cached_reqs() with inverted condition +
goto, so all the cases are handled in the same way. And also extract
io_preinit_req() to make it cleaner and easier to refer to.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1abcba1f7b55dc53bf1dbe95036e345ffb1d5b01.1628471125.git.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