UPSTREAM: fs: add support for LOOKUP_CACHED
[ Upstream commit 6c6ec2b0 ] io_uring always punts opens to async context, since there's no control over whether the lookup blocks or not. Add LOOKUP_CACHED to support just doing the fast RCU based lookups, which we know will not block. If we can do a cached path resolution of the filename, then we don't have to always punt lookups for a worker. During path resolution, we always do LOOKUP_RCU first. If that fails and we terminate LOOKUP_RCU, then fail a LOOKUP_CACHED attempt as well. Cc: Al Viro <viro@zeniv.linux.org.uk> Change-Id: If3c62e8681cd47bfafaa5a4de05a7e0418c1c718 Signed-off-by:Jens Axboe <axboe@kernel.dk> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit c1fe7bd3) Bug: 268174392 Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com>
Loading
Please sign in to comment