io_uring: get rid of double locking
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Dec 2022 03:53:34 +0000 (03:53 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Dec 2022 13:47:13 +0000 (06:47 -0700)
commit11373026f2960390d5e330df4e92735c4265c440
tree7c2e3fc81b9f2ac387b55bfe97f8d5f745ed5ccb
parent77e443ab294ca5b88896e8ddab41884948d5519a
io_uring: get rid of double locking

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>
io_uring/msg_ring.c
io_uring/msg_ring.h
io_uring/opdef.c