File tree 3 files changed +2
-10
lines changed
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
361
361
io_alloc_cache_free (& ctx -> netmsg_cache , io_netmsg_cache_free );
362
362
io_alloc_cache_free (& ctx -> rw_cache , io_rw_cache_free );
363
363
io_alloc_cache_free (& ctx -> uring_cache , kfree );
364
- io_alloc_cache_free (& ctx -> msg_cache , io_msg_cache_free );
364
+ io_alloc_cache_free (& ctx -> msg_cache , kfree );
365
365
io_futex_cache_free (ctx );
366
366
kvfree (ctx -> cancel_table .hbs );
367
367
xa_destroy (& ctx -> io_bl_xa );
@@ -2696,7 +2696,7 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)
2696
2696
io_alloc_cache_free (& ctx -> netmsg_cache , io_netmsg_cache_free );
2697
2697
io_alloc_cache_free (& ctx -> rw_cache , io_rw_cache_free );
2698
2698
io_alloc_cache_free (& ctx -> uring_cache , kfree );
2699
- io_alloc_cache_free (& ctx -> msg_cache , io_msg_cache_free );
2699
+ io_alloc_cache_free (& ctx -> msg_cache , kfree );
2700
2700
io_futex_cache_free (ctx );
2701
2701
io_destroy_buffers (ctx );
2702
2702
io_free_region (ctx , & ctx -> param_region );
Original file line number Diff line number Diff line change @@ -354,10 +354,3 @@ int io_uring_sync_msg_ring(struct io_uring_sqe *sqe)
354
354
return __io_msg_ring_data (fd_file (f )-> private_data ,
355
355
& io_msg , IO_URING_F_UNLOCKED );
356
356
}
357
-
358
- void io_msg_cache_free (const void * entry )
359
- {
360
- struct io_kiocb * req = (struct io_kiocb * ) entry ;
361
-
362
- kmem_cache_free (req_cachep , req );
363
- }
Original file line number Diff line number Diff line change @@ -4,4 +4,3 @@ int io_uring_sync_msg_ring(struct io_uring_sqe *sqe);
4
4
int io_msg_ring_prep (struct io_kiocb * req , const struct io_uring_sqe * sqe );
5
5
int io_msg_ring (struct io_kiocb * req , unsigned int issue_flags );
6
6
void io_msg_ring_cleanup (struct io_kiocb * req );
7
- void io_msg_cache_free (const void * entry );
You can’t perform that action at this time.
0 commit comments