io_uring/rsrc: add io_rsrc_node_lookup() helper
authorJens Axboe <axboe@kernel.dk>
Sun, 27 Oct 2024 15:08:31 +0000 (09:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Oct 2024 14:10:33 +0000 (08:10 -0600)
commit12203c90f67b5b1f5ab7c09fbfaadf6db4c1e941
tree57a98bb1385b87121e39d53fd91e215b9ee60d62
parent1748ee3ddd1086f17bd802587ae1169a3b0f36f7
io_uring/rsrc: add io_rsrc_node_lookup() helper

There are lots of spots open-coding this functionality, add a generic
helper that does the node lookup in a speculation safe way.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
12 files changed:
io_uring/cancel.c
io_uring/filetable.c
io_uring/filetable.h
io_uring/io_uring.c
io_uring/msg_ring.c
io_uring/net.c
io_uring/nop.c
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/rw.c
io_uring/splice.c
io_uring/uring_cmd.c