diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-11-03 18:46:07 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-06 23:55:36 +0300 |
commit | 6f94cbc29adacc15007c5a16295052e674099282 (patch) | |
tree | e7cd3fa78367dedba9c456a43e871af6a7250dca /io_uring/notif.c | |
parent | 6af82f7614a2e31e7ef23e5e160697aef31e8edd (diff) | |
download | linux-6f94cbc29adacc15007c5a16295052e674099282.tar.xz |
io_uring/rsrc: split io_kiocb node type assignments
Currently the io_rsrc_node assignment in io_kiocb is an array of two
pointers, as two nodes may be assigned to a request - one file node,
and one buffer node. However, the buffer node can co-exist with the
provided buffers, as currently it's not supported to use both provided
and registered buffers at the same time.
This crucially brings struct io_kiocb down to 4 cache lines again, as
before it spilled into the 5th cacheline.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/notif.c')
-rw-r--r-- | io_uring/notif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/notif.c b/io_uring/notif.c index 4f02e969cf08..8dfbb0bd8e4d 100644 --- a/io_uring/notif.c +++ b/io_uring/notif.c @@ -117,8 +117,8 @@ struct io_kiocb *io_alloc_notif(struct io_ring_ctx *ctx) notif->file = NULL; notif->task = current; io_get_task_refs(1); - notif->rsrc_nodes[IORING_RSRC_FILE] = NULL; - notif->rsrc_nodes[IORING_RSRC_BUFFER] = NULL; + notif->file_node = NULL; + notif->buf_node = NULL; nd = io_notif_to_data(notif); nd->zc_report = false; |