aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2018-10-01 10:41:51 -0400
committerJ. Bruce Fields <bfields@redhat.com>2018-10-29 16:58:04 -0400
commitd48cf356a13073853f19be6ca5ebbecfc2762ebe (patch)
tree94c1c887f4b40d27666b4bd2b9205c9a7dcc78af /Documentation/filesystems/nfs
parenta6482733bc98aa04b44c91e744bbcbfb29f8d3ee (diff)
SUNRPC: Remove non-RCU protected lookup
Clean up the cache code by removing the non-RCU protected lookup. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'Documentation/filesystems/nfs')
-rw-r--r--Documentation/filesystems/nfs/rpc-cache.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/nfs/rpc-cache.txt b/Documentation/filesystems/nfs/rpc-cache.txt
index ebcaaee21616..c4dac829db0f 100644
--- a/Documentation/filesystems/nfs/rpc-cache.txt
+++ b/Documentation/filesystems/nfs/rpc-cache.txt
@@ -84,7 +84,7 @@ Creating a Cache
84 A message from user space has arrived to fill out a 84 A message from user space has arrived to fill out a
85 cache entry. It is in 'buf' of length 'len'. 85 cache entry. It is in 'buf' of length 'len'.
86 cache_parse should parse this, find the item in the 86 cache_parse should parse this, find the item in the
87 cache with sunrpc_cache_lookup, and update the item 87 cache with sunrpc_cache_lookup_rcu, and update the item
88 with sunrpc_cache_update. 88 with sunrpc_cache_update.
89 89
90 90
@@ -95,7 +95,7 @@ Creating a Cache
95Using a cache 95Using a cache
96------------- 96-------------
97 97
98To find a value in a cache, call sunrpc_cache_lookup passing a pointer 98To find a value in a cache, call sunrpc_cache_lookup_rcu passing a pointer
99to the cache_head in a sample item with the 'key' fields filled in. 99to the cache_head in a sample item with the 'key' fields filled in.
100This will be passed to ->match to identify the target entry. If no 100This will be passed to ->match to identify the target entry. If no
101entry is found, a new entry will be create, added to the cache, and 101entry is found, a new entry will be create, added to the cache, and
@@ -116,7 +116,7 @@ item does become valid, the deferred copy of the request will be
116revisited (->revisit). It is expected that this method will 116revisited (->revisit). It is expected that this method will
117reschedule the request for processing. 117reschedule the request for processing.
118 118
119The value returned by sunrpc_cache_lookup can also be passed to 119The value returned by sunrpc_cache_lookup_rcu can also be passed to
120sunrpc_cache_update to set the content for the item. A second item is 120sunrpc_cache_update to set the content for the item. A second item is
121passed which should hold the content. If the item found by _lookup 121passed which should hold the content. If the item found by _lookup
122has valid data, then it is discarded and a new item is created. This 122has valid data, then it is discarded and a new item is created. This