diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-11 12:06:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-12 12:09:41 -0600 |
commit | 528407b1e0ea51260fff2cc8b669c632a65d7a09 (patch) | |
tree | fc71826287bad3c13e9e8408582f5113d331535f /io_uring/io_uring.c | |
parent | 786788a8cfe03056e9c7b1c6e418c1db92a0ce80 (diff) | |
download | linux-next-528407b1e0ea51260fff2cc8b669c632a65d7a09.tar.gz |
io_uring/rsrc: consolidate node caching
We store one pre-allocated rsrc node in ->rsrc_backup_node, merge it
with ->rsrc_node_cache.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6d5410e51ccd29be7a716be045b51d6b371baef6.1681210788.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index b171c26d331d..075bae8a2bb1 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -2852,8 +2852,6 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx) /* there are no registered resources left, nobody uses it */ if (ctx->rsrc_node) io_rsrc_node_destroy(ctx, ctx->rsrc_node); - if (ctx->rsrc_backup_node) - io_rsrc_node_destroy(ctx, ctx->rsrc_backup_node); WARN_ON_ONCE(!list_empty(&ctx->rsrc_ref_list)); |