aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2023-08-11 13:53:46 +0100
committerJens Axboe <[email protected]>2023-08-11 10:42:57 -0600
commit19a63c4021702e389a559726b16fcbf07a8a05f9 (patch)
tree6b7b8db21dfeba497e12914afec8d01cdbd28020 /tools/perf/scripts/python
parentb6b2bb58a75407660f638a68e6e34a07036146d0 (diff)
io_uring/rsrc: keep one global dummy_ubuf
We set empty registered buffers to dummy_ubuf as an optimisation. Currently, we allocate the dummy entry for each ring, whenever we can simply have one global instance. We're casting out const on assignment, it's fine as we're not going to change the content of the dummy, the constness gives us an extra layer of protection if sth ever goes wrong. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/e4a96dda35ab755914bc43f6781bba0df97ac489.1691757663.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions