]> 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)
commit0d74d2ec4e470ac08b9131294ac20d34f6ee1928
tree0cf6fa21947d0b2d9ad10276df8fd892ca4ef9d6
parente2b897d842ed40d68abd50f9605549ff04dc165f
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