diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-18 14:06:41 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-18 19:38:26 -0600 |
commit | 2236b3905b4d4e9cd4d149ab35767858c02bb79b (patch) | |
tree | e45f7bc09e3855b42b99aa8de806556eb98436b7 /io_uring/rsrc.h | |
parent | fc7f3a8d3a78503c4f3e108155fb9a233dc307a4 (diff) | |
download | linux-2236b3905b4d4e9cd4d149ab35767858c02bb79b.tar.gz linux-2236b3905b4d4e9cd4d149ab35767858c02bb79b.tar.bz2 linux-2236b3905b4d4e9cd4d149ab35767858c02bb79b.zip |
io_uring/rsrc: disassociate nodes and rsrc_data
Make rsrc nodes independent from rsrd_data, for that we keep ctx and
rsrc type in nodes.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4f259abe9cd4eea6a3b4ed83508635218acd3c3f.1681822823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r-- | io_uring/rsrc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 5d0733c4c08d..0a8a95e9b99e 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -40,10 +40,11 @@ struct io_rsrc_data { struct io_rsrc_node { union { struct io_cache_entry cache; - struct io_rsrc_data *rsrc_data; + struct io_ring_ctx *ctx; }; int refs; bool empty; + u16 type; struct list_head node; struct io_rsrc_put item; }; |