commit | 8e15c0e71b8ae64fb7163532860f8d608165281f | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Tue Apr 04 13:39:46 2023 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Apr 04 09:30:39 2023 -0600 |
tree | 27f9f09c08c03720ae10393588ce70a57e8c82be | |
parent | b8fb5b4fdd67f9d18109c5d21d44a8bd4ddb608b [diff] |
io_uring/rsrc: keep cached refs per node We cache refs of the current node (i.e. ctx->rsrc_node) in ctx->rsrc_cached_refs. We'll be moving away from atomics, so move the cached refs in struct io_rsrc_node for now. It's a prep patch and shouldn't change anything in practise. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/9edc3669c1d71b06c2dca78b2b2b8bb9292738b9.1680576071.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>