io_uring/kbuf: protect io_buffer_list teardown with a reference
authorJens Axboe <axboe@kernel.dk>
Fri, 15 Mar 2024 22:12:51 +0000 (16:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Mar 2024 15:34:41 +0000 (09:34 -0600)
commit51cdc570979398765feb63cb9f63fdaa95dd8dc7
tree6915ce992c0a729ca97d69d03b5a43876a43eec1
parentab6d5ee2003ca421b488d2542ea426c8fbee25de
io_uring/kbuf: protect io_buffer_list teardown with a reference

No functional changes in this patch, just in preparation for being able
to keep the buffer list alive outside of the ctx->uring_lock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c
io_uring/kbuf.h