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)
commit68ef5578efc8893489400b1ec30af66dab4f75ff
tree0cf6fa21947d0b2d9ad10276df8fd892ca4ef9d6
parente58d498e81baa9fd8acf5132d8b2d4f829361f6b
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