io_uring: get rid of double locking
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Dec 2022 03:53:34 +0000 (03:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:11:04 +0000 (16:11 +0200)
commit0d617fb6d5132dc1ffd12ec0c90af71fd89c63a0
tree7aea7b3b6b6ecc7c363766bfc5c85ee874577ee2
parent82d811ff566594de3676f35808e8a9e19c5c864c
io_uring: get rid of double locking

Commit 11373026f2960390d5e330df4e92735c4265c440 upstream.

We don't need to take both uring_locks at once, msg_ring can be split in
two parts, first getting a file from the filetable of the first ring and
then installing it into the second one.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a80ecc2bc99c3b3f2cf20015d618b7c51419a797.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/msg_ring.c
io_uring/msg_ring.h
io_uring/opdef.c