diff options
Diffstat (limited to 'Documentation/RCU/checklist.txt')
-rw-r--r-- | Documentation/RCU/checklist.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/RCU/checklist.txt b/Documentation/RCU/checklist.txt index 9d10d1db16a5..877947130ebe 100644 --- a/Documentation/RCU/checklist.txt +++ b/Documentation/RCU/checklist.txt | |||
@@ -114,12 +114,16 @@ over a rather long period of time, but improvements are always welcome! | |||
114 | http://www.openvms.compaq.com/wizard/wiz_2637.html | 114 | http://www.openvms.compaq.com/wizard/wiz_2637.html |
115 | 115 | ||
116 | The rcu_dereference() primitive is also an excellent | 116 | The rcu_dereference() primitive is also an excellent |
117 | documentation aid, letting the person reading the code | 117 | documentation aid, letting the person reading the |
118 | know exactly which pointers are protected by RCU. | 118 | code know exactly which pointers are protected by RCU. |
119 | Please note that compilers can also reorder code, and | 119 | Please note that compilers can also reorder code, and |
120 | they are becoming increasingly aggressive about doing | 120 | they are becoming increasingly aggressive about doing |
121 | just that. The rcu_dereference() primitive therefore | 121 | just that. The rcu_dereference() primitive therefore also |
122 | also prevents destructive compiler optimizations. | 122 | prevents destructive compiler optimizations. However, |
123 | with a bit of devious creativity, it is possible to | ||
124 | mishandle the return value from rcu_dereference(). | ||
125 | Please see rcu_dereference.txt in this directory for | ||
126 | more information. | ||
123 | 127 | ||
124 | The rcu_dereference() primitive is used by the | 128 | The rcu_dereference() primitive is used by the |
125 | various "_rcu()" list-traversal primitives, such | 129 | various "_rcu()" list-traversal primitives, such |