]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add rsrc referencing for notifiers
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Jul 2022 20:52:41 +0000 (21:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:41:06 +0000 (18:41 -0600)
commit5ee8a3c37e403a922ee0ac020d0c05608230e43b
tree0cf6fa21947d0b2d9ad10276df8fd892ca4ef9d6
parent1c0f253f15073b4830cf265b6e7067c22d7e8151
io_uring: add rsrc referencing for notifiers

In preparation to zerocopy sends with fixed buffers make notifiers to
reference the rsrc node to protect the used fixed buffers. We can't just
grab it for a send request as notifiers can likely outlive requests that
used it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3cd7a01d26837945b6982fa9cf15a63230f2ed4f.1657643355.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/notif.c
io_uring/notif.h
io_uring/rsrc.h