aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-03-19 17:22:36 +0000
committerJens Axboe <[email protected]>2021-04-11 17:41:58 -0600
commit8dd03afe611d371b8c8a2ebeec2720de662a21dc (patch)
treeba8a0d0bcafad64da1a705a929e9e77fb0a09d7b /tools/perf/scripts/python/bin
parentdd78f49260dd49f21bbf12080cceb8e13ce53db3 (diff)
io_uring: refactor rsrc refnode allocation
There are two problems: 1) we always allocate refnodes in advance and free them if those haven't been used. It's expensive, takes two allocations, where one of them is percpu. And it may be pretty common not actually using them. 2) Current API with allocating a refnode and setting some of the fields is error prone, we don't ever want to have a file node runninng fixed buffer callback... Solve both with pre-init/get API. Pre-init just leaves the node for later if not used, and for get (i.e. io_rsrc_refnode_get()), you need to explicitly pass all arguments setting callbacks/etc., so it's more resilient. Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions