]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:16 +0000 (16:38 +0200)
commitda64e0edbb1bd6524b5287be834f31e074409986
treee8f61cafd09279b6cb915e6d580b931b734031e7
parent4ce585360581eef99dc0ad1717b740b250145b0b
io_uring/kbuf: protect io_buffer_list teardown with a reference

commit 6b69c4ab4f685327d9e10caf0d84217ba23a8c4b upstream.

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

Cc: stable@vger.kernel.org # v6.4+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/kbuf.c
io_uring/kbuf.h