aboutsummaryrefslogtreecommitdiff
path: root/io_uring/notif.h
diff options
context:
space:
mode:
authorGravatar Pavel Begunkov <asml.silence@gmail.com> 2022-07-12 21:52:41 +0100
committerGravatar Jens Axboe <axboe@kernel.dk> 2022-07-24 18:41:06 -0600
commit68ef5578efc8893489400b1ec30af66dab4f75ff (patch)
tree0cf6fa21947d0b2d9ad10276df8fd892ca4ef9d6 /io_uring/notif.h
parentio_uring: complete notifiers in tw (diff)
downloadlinux-68ef5578efc8893489400b1ec30af66dab4f75ff.tar.gz
linux-68ef5578efc8893489400b1ec30af66dab4f75ff.tar.bz2
linux-68ef5578efc8893489400b1ec30af66dab4f75ff.zip
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>
Diffstat (limited to 'io_uring/notif.h')
-rw-r--r--io_uring/notif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/notif.h b/io_uring/notif.h
index 23ca7620fff9..1dd48efb7744 100644
--- a/io_uring/notif.h
+++ b/io_uring/notif.h
@@ -10,6 +10,7 @@
struct io_notif {
struct ubuf_info uarg;
struct io_ring_ctx *ctx;
+ struct io_rsrc_node *rsrc_node;
/* complete via tw if ->task is non-NULL, fallback to wq otherwise */
struct task_struct *task;