summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-07-13 22:59:20 +0300
committerJens Axboe <axboe@kernel.dk>2020-07-24 12:55:44 -0600
commit252917c30f551e8e4377faac81d7fcf8e9629df1 (patch)
tree938627f73a8b73ee2aef2c2dfa59d63db7da13c2 /tools/perf/scripts/python/export-to-sqlite.py
parentc3e330a493740a2a8312dcb7b1cffceaec7f619a (diff)
io_uring: follow **iovec idiom in io_import_iovec
As for import_iovec(), return !=NULL iovec from io_import_iovec() only when it should be freed. That includes returning NULL when iovec is already in req->io, because it should be deallocated by other means, e.g. inside op handler. After io_setup_async_rw() local iovec to ->io, just mark it NULL, to follow the idea in io_{read,write} as well. That's easier to follow, and especially useful if we want to reuse per-op space for completion data. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> [axboe: only call kfree() on non-NULL pointer] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions