aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-11-27 23:47:04 +0000
committerJens Axboe <[email protected]>2023-11-28 14:56:16 +0000
commitc392cbecd8eca4c53f2bf508731257d9d0a21c2d (patch)
tree74054d568c3324dc69b65b037d9076466c2352af /tools/perf/scripts/python/gecko.py
parentio_uring: enable io_mem_alloc/free to be used in other parts (diff)
downloadkernel-c392cbecd8eca4c53f2bf508731257d9d0a21c2d.tar.gz
kernel-c392cbecd8eca4c53f2bf508731257d9d0a21c2d.zip
io_uring/kbuf: defer release of mapped buffer rings
If a provided buffer ring is setup with IOU_PBUF_RING_MMAP, then the kernel allocates the memory for it and the application is expected to mmap(2) this memory. However, io_uring uses remap_pfn_range() for this operation, so we cannot rely on normal munmap/release on freeing them for us. Stash an io_buf_free entry away for each of these, if any, and provide a helper to free them post ->release(). Cc: [email protected] Fixes: c56e022c0a27 ("io_uring: add support for user mapped provided buffer ring") Reported-by: Jann Horn <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions