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 19:43:28 +0000 (13:43 -0600)
commit20403c459ff75f7a4f95a371c9897c6a68099913
tree246dbfc431d821cf7849970857e60fb6d9172b88
parentfd4fac1603070978665fe7519ac7e0d1cde9eb2c
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