diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2024-11-29 13:34:37 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-12-23 08:17:16 -0700 |
| commit | 90175f3f503213903b00bc7ba9f8ae436fc5c00e (patch) | |
| tree | 6db652fa22044fae06ce09cd98c98cbc2c30e288 /io_uring/kbuf.h | |
| parent | 78fda3d056417ccb9921663383b12f771aa0dd43 (diff) | |
| download | linux-90175f3f503213903b00bc7ba9f8ae436fc5c00e.tar.gz linux-90175f3f503213903b00bc7ba9f8ae436fc5c00e.tar.bz2 linux-90175f3f503213903b00bc7ba9f8ae436fc5c00e.zip | |
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/kbuf.h')
| -rw-r--r-- | io_uring/kbuf.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/io_uring/kbuf.h b/io_uring/kbuf.h index d5e4afcbfbb3..dff7444026a6 100644 --- a/io_uring/kbuf.h +++ b/io_uring/kbuf.h @@ -35,8 +35,6 @@ struct io_buffer_list { __u16 mask; __u16 flags; - - atomic_t refs; }; struct io_buffer { @@ -83,7 +81,6 @@ void __io_put_kbuf(struct io_kiocb *req, int len, unsigned issue_flags); bool io_kbuf_recycle_legacy(struct io_kiocb *req, unsigned issue_flags); -void io_put_bl(struct io_ring_ctx *ctx, struct io_buffer_list *bl); struct io_buffer_list *io_pbuf_get_bl(struct io_ring_ctx *ctx, unsigned long bgid); int io_pbuf_mmap(struct file *file, struct vm_area_struct *vma); |
