diff options
author | Yang Erkun <yangerkun@huawei.com> | 2024-12-25 14:59:05 +0800 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-01-06 09:37:40 -0500 |
commit | 2f55dbe4e2072c9e99298c6f37473778a98c9107 (patch) | |
tree | 0af3624055bd8f19e7137b963ed63be67d8ccae1 /include | |
parent | cb80ecf75ac38df30cea1163563391ef7e76a24e (diff) |
SUNRPC: introduce cache_check_rcu to help check in rcu context
This is a prepare patch to add cache_check_rcu, will use it with follow
patch.
Suggested-by: NeilBrown <neilb@suse.de>
Signed-off-by: Yang Erkun <yangerkun@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 35766963dd14..e783132e481f 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -222,6 +222,8 @@ static inline bool cache_is_expired(struct cache_detail *detail, struct cache_he return detail->flush_time >= h->last_refresh; } +extern int cache_check_rcu(struct cache_detail *detail, + struct cache_head *h, struct cache_req *rqstp); extern int cache_check(struct cache_detail *detail, struct cache_head *h, struct cache_req *rqstp); extern void cache_flush(void); |