summaryrefslogtreecommitdiff
path: root/io_uring/notif.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-11-04 10:59:41 +0000
committerJens Axboe <axboe@kernel.dk>2022-11-21 07:38:31 -0700
commit5bc8e8884b4e9579ca57e33d42d60090b7288050 (patch)
tree397765180b3148cd7f5ff8c1914908bbdcaf15d6 /io_uring/notif.c
parent3671163beb633fbe3297b8e30369b640ce4bd690 (diff)
io_uring/net: remove extra notif rsrc setup
io_send_zc_prep() sets up notification's rsrc_node when needed, don't unconditionally install it on notif alloc. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/dbe4875ac33e180b9799d8537a5e27935e82aac4.1667557923.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/notif.c')
-rw-r--r--io_uring/notif.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/notif.c b/io_uring/notif.c
index 4bfef10161fa..59dafc42b8e0 100644
--- a/io_uring/notif.c
+++ b/io_uring/notif.c
@@ -60,7 +60,6 @@ struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx)
notif->task = current;
io_get_task_refs(1);
notif->rsrc_node = NULL;
- io_req_set_rsrc_node(notif, ctx, 0);
nd = io_notif_to_data(notif);
nd->account_pages = 0;