io_uring: add a helper for putting rsrc nodes
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 18 Apr 2022 19:51:14 +0000 (20:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Apr 2022 22:21:26 +0000 (16:21 -0600)
commitc78eaa44be8fa82f929879d08b82e7c18d08ef86
treee1a44e04e2d23e4b1cbbe985e56d3ae0e669082f
parentad9ee4583d5eed548cd6aaa47b6fe74d74594b8d
io_uring: add a helper for putting rsrc nodes

Add a simple helper to encapsulating dropping rsrc nodes references,
it's cleaner and will help if we'd change rsrc refcounting or play with
percpu_ref_put() [no]inlining.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/63fdd953ac75898734cd50e8f69e95e6664f46fe.1650311386.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c