]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 25 Apr 2022 00:02:52 +0000 (18:02 -0600)
commit3e761d6e018073179911aa5ce1e005c5b4fc2119
treedcbbfd5836d978b90cfc1e834b202841a7586bc1
parente695ff966b313a0cf85262988b59dd547acc291f
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