@@ -312,9 +312,7 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
312312 INIT_LIST_HEAD (& ctx -> sqd_list );
313313 INIT_LIST_HEAD (& ctx -> cq_overflow_list );
314314 INIT_LIST_HEAD (& ctx -> io_buffers_cache );
315- ret = io_alloc_cache_init (& ctx -> rsrc_node_cache , IO_NODE_ALLOC_CACHE_MAX ,
316- sizeof (struct io_rsrc_node ));
317- ret |= io_alloc_cache_init (& ctx -> apoll_cache , IO_POLL_ALLOC_CACHE_MAX ,
315+ ret = io_alloc_cache_init (& ctx -> apoll_cache , IO_POLL_ALLOC_CACHE_MAX ,
318316 sizeof (struct async_poll ));
319317 ret |= io_alloc_cache_init (& ctx -> netmsg_cache , IO_ALLOC_CACHE_MAX ,
320318 sizeof (struct io_async_msghdr ));
@@ -358,7 +356,6 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
358356free_ref :
359357 percpu_ref_exit (& ctx -> refs );
360358err :
361- io_alloc_cache_free (& ctx -> rsrc_node_cache , kfree );
362359 io_alloc_cache_free (& ctx -> apoll_cache , kfree );
363360 io_alloc_cache_free (& ctx -> netmsg_cache , io_netmsg_cache_free );
364361 io_alloc_cache_free (& ctx -> rw_cache , io_rw_cache_free );
@@ -2740,7 +2737,6 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)
27402737
27412738 WARN_ON_ONCE (!list_empty (& ctx -> ltimeout_list ));
27422739
2743- io_alloc_cache_free (& ctx -> rsrc_node_cache , kfree );
27442740 if (ctx -> mm_account ) {
27452741 mmdrop (ctx -> mm_account );
27462742 ctx -> mm_account = NULL ;
0 commit comments