io_uring/rsrc: infer node from ctx on io_queue_rsrc_removal
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 18 Apr 2023 13:06:35 +0000 (14:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Apr 2023 01:38:26 +0000 (19:38 -0600)
commit63fea89027ff4fd4f350b471ad5b9220d373eec5
treecb51c9725785eacedafb8c8619481b5cadaa32b2
parent2e6f45ac0e640bbd49296adfa0982c84f85fa342
io_uring/rsrc: infer node from ctx on io_queue_rsrc_removal

For io_queue_rsrc_removal() we should always use the current active rsrc
node, don't pass it directly but let the function grab it from the
context.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d15939b4afea730978b4925685c2577538b823bb.1681822823.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c
io_uring/rsrc.c
io_uring/rsrc.h