aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-11-28 18:17:25 +0000
committerJens Axboe <[email protected]>2023-11-28 18:45:02 +0000
commitb10b73c102a2eab91e1cd62a03d6446f1dfecc64 (patch)
tree66ddc4f45f3dd648d900a7cd0a169b8f3b969ae0 /tools/perf/scripts/python/gecko.py
parentio_uring/kbuf: defer release of mapped buffer rings (diff)
downloadkernel-b10b73c102a2eab91e1cd62a03d6446f1dfecc64.tar.gz
kernel-b10b73c102a2eab91e1cd62a03d6446f1dfecc64.zip
io_uring/kbuf: recycle freed mapped buffer ring entries
Right now we stash any potentially mmap'ed provided ring buffer range for freeing at release time, regardless of when they get unregistered. Since we're keeping track of these ranges anyway, keep track of their registration state as well, and use that to recycle ranges when appropriate rather than always allocate new ones. The lookup is a basic scan of entries, checking for the best matching free entry. Fixes: c392cbecd8ec ("io_uring/kbuf: defer release of mapped buffer rings") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions