diff options
| author | Gabriel Krisman Bertazi <[email protected]> | 2024-12-16 20:46:15 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-12-27 17:08:21 +0000 |
| commit | ce9464081d5168ee0f279d6932ba82260a5b97c4 (patch) | |
| tree | d5988a8430f60a11d4bc79116a95f92f0c2f4877 /io_uring/msg_ring.c | |
| parent | io_uring: Move old async data allocation helper to header (diff) | |
| download | kernel-ce9464081d5168ee0f279d6932ba82260a5b97c4.tar.gz kernel-ce9464081d5168ee0f279d6932ba82260a5b97c4.zip | |
io_uring/msg_ring: Drop custom destructor
kfree can handle slab objects nowadays. Drop the extra callback and just
use kfree.
Signed-off-by: Gabriel Krisman Bertazi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'io_uring/msg_ring.c')
| -rw-r--r-- | io_uring/msg_ring.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/io_uring/msg_ring.c b/io_uring/msg_ring.c index 333c220d322a..bd3cd78d2dba 100644 --- a/io_uring/msg_ring.c +++ b/io_uring/msg_ring.c @@ -354,10 +354,3 @@ int io_uring_sync_msg_ring(struct io_uring_sqe *sqe) return __io_msg_ring_data(fd_file(f)->private_data, &io_msg, IO_URING_F_UNLOCKED); } - -void io_msg_cache_free(const void *entry) -{ - struct io_kiocb *req = (struct io_kiocb *) entry; - - kmem_cache_free(req_cachep, req); -} |
