io_uring/rsrc: refactor io_queue_rsrc_removal
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Apr 2023 14:28:14 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Apr 2023 20:45:55 +0000 (14:45 -0600)
commitc899a5d7d0eca054546b63e95c94b1e609516f84
treeb4fd88c0c729e15e436e668a019c2f7c16cf1c19
parentc87fd583f3b5ef770af33893394ea37c7a10b5b8
io_uring/rsrc: refactor io_queue_rsrc_removal

We can queue up a rsrc into a list in io_queue_rsrc_removal() while
allocating io_rsrc_put and so simplify the function.

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