diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-12-07 03:53:34 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-07 06:47:13 -0700 |
commit | 11373026f2960390d5e330df4e92735c4265c440 (patch) | |
tree | 7c2e3fc81b9f2ac387b55bfe97f8d5f745ed5ccb /io_uring/msg_ring.h | |
parent | 77e443ab294ca5b88896e8ddab41884948d5519a (diff) | |
download | linux-11373026f2960390d5e330df4e92735c4265c440.tar.gz linux-11373026f2960390d5e330df4e92735c4265c440.tar.bz2 linux-11373026f2960390d5e330df4e92735c4265c440.zip |
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>
Diffstat (limited to 'io_uring/msg_ring.h')
-rw-r--r-- | io_uring/msg_ring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/msg_ring.h b/io_uring/msg_ring.h index fb9601f202d0..3987ee6c0e5f 100644 --- a/io_uring/msg_ring.h +++ b/io_uring/msg_ring.h @@ -2,3 +2,4 @@ int io_msg_ring_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe); int io_msg_ring(struct io_kiocb *req, unsigned int issue_flags); +void io_msg_ring_cleanup(struct io_kiocb *req); |