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>
Mon, 28 Oct 2024 19:23:03 +0000 (13:23 -0600)
commitb7c0423d05bb90751614c394d1c5e8bab62069a1
tree69da92849c9c8a6995890de7910acf8cd1a556d5
parent6d94bc9e8797023a0bd2e709dbb766106bf0b777
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