summaryrefslogtreecommitdiff
path: root/io_uring/io_uring.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-14 10:45:07 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-10 16:36:02 +0200
commitd6e03f6d8bcce48c181a4177ec19a9ddb8b20e67 (patch)
tree02df4a3af649e40e60360886bdf972bddb1c6ebd /io_uring/io_uring.c
parent781477d729be26cd0e42b87084ef886ca5988690 (diff)
downloadlinux-d6e03f6d8bcce48c181a4177ec19a9ddb8b20e67.tar.gz
linux-d6e03f6d8bcce48c181a4177ec19a9ddb8b20e67.tar.bz2
linux-d6e03f6d8bcce48c181a4177ec19a9ddb8b20e67.zip
io_uring/kbuf: get rid of lower BGID lists
commit 09ab7eff38202159271534d2f5ad45526168f2a5 upstream. Just rely on the xarray for any kind of bgid. This simplifies things, and it really doesn't bring us much, if anything. Cc: stable@vger.kernel.org # v6.4+ Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r--io_uring/io_uring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index aed10bae50ac..f265f805e2f7 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -343,7 +343,6 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)
err:
kfree(ctx->cancel_table.hbs);
kfree(ctx->cancel_table_locked.hbs);
- kfree(ctx->io_bl);
xa_destroy(&ctx->io_bl_xa);
kfree(ctx);
return NULL;
@@ -2934,7 +2933,6 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)
io_wq_put_hash(ctx->hash_map);
kfree(ctx->cancel_table.hbs);
kfree(ctx->cancel_table_locked.hbs);
- kfree(ctx->io_bl);
xa_destroy(&ctx->io_bl_xa);
kfree(ctx);
}