diff options
author | Trond Myklebust <trondmy@gmail.com> | 2018-10-01 10:41:51 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-10-29 16:58:04 -0400 |
commit | d48cf356a13073853f19be6ca5ebbecfc2762ebe (patch) | |
tree | 94c1c887f4b40d27666b4bd2b9205c9a7dcc78af /Documentation/filesystems/nfs | |
parent | a6482733bc98aa04b44c91e744bbcbfb29f8d3ee (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.txt | 6 |
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 | |||
95 | Using a cache | 95 | Using a cache |
96 | ------------- | 96 | ------------- |
97 | 97 | ||
98 | To find a value in a cache, call sunrpc_cache_lookup passing a pointer | 98 | To find a value in a cache, call sunrpc_cache_lookup_rcu passing a pointer |
99 | to the cache_head in a sample item with the 'key' fields filled in. | 99 | to the cache_head in a sample item with the 'key' fields filled in. |
100 | This will be passed to ->match to identify the target entry. If no | 100 | This will be passed to ->match to identify the target entry. If no |
101 | entry is found, a new entry will be create, added to the cache, and | 101 | entry 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 | |||
116 | revisited (->revisit). It is expected that this method will | 116 | revisited (->revisit). It is expected that this method will |
117 | reschedule the request for processing. | 117 | reschedule the request for processing. |
118 | 118 | ||
119 | The value returned by sunrpc_cache_lookup can also be passed to | 119 | The value returned by sunrpc_cache_lookup_rcu can also be passed to |
120 | sunrpc_cache_update to set the content for the item. A second item is | 120 | sunrpc_cache_update to set the content for the item. A second item is |
121 | passed which should hold the content. If the item found by _lookup | 121 | passed which should hold the content. If the item found by _lookup |
122 | has valid data, then it is discarded and a new item is created. This | 122 | has valid data, then it is discarded and a new item is created. This |