summaryrefslogtreecommitdiff
path: root/io_uring/memmap.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2024-11-29 13:34:37 +0000
committerJens Axboe <axboe@kernel.dk>2024-12-23 08:17:16 -0700
commit90175f3f503213903b00bc7ba9f8ae436fc5c00e (patch)
tree6db652fa22044fae06ce09cd98c98cbc2c30e288 /io_uring/memmap.c
parent78fda3d056417ccb9921663383b12f771aa0dd43 (diff)
io_uring/kbuf: remove pbuf ring refcounting
struct io_buffer_list refcounting was needed for RCU based sync with mmap, now we can kill it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/4a9cc54bf0077bb2bf2f3daf917549ddd41080da.1732886067.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/memmap.c')
-rw-r--r--io_uring/memmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/memmap.c b/io_uring/memmap.c
index 668b1c3579a2..73b73f4ea1bd 100644
--- a/io_uring/memmap.c
+++ b/io_uring/memmap.c
@@ -383,7 +383,6 @@ static void *io_uring_validate_mmap_request(struct file *file, loff_t pgoff,
if (IS_ERR(bl))
return bl;
ptr = bl->buf_ring;
- io_put_bl(ctx, bl);
return ptr;
}
case IORING_MAP_OFF_PARAM_REGION: