Skip to content

Commit e14505a

Browse files
committed
Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu
Pull RCU updates from Paul E. McKenney: " 1. Update RCU documentation. These were posted to LKML at https://lkml.org/lkml/2014/4/28/634. 2. Miscellaneous fixes. These were posted to LKML at https://lkml.org/lkml/2014/4/28/645. 3. Torture-test changes. These were posted to LKML at https://lkml.org/lkml/2014/4/28/667. 4. Variable-name renaming cleanup, sent separately due to conflicts. This was posted to LKML at https://lkml.org/lkml/2014/5/13/854. 5. Patch to suppress RCU stall warnings while sysrq requests are being processed. This patch is the RCU portions of the patch that Rik posted to LKML at https://lkml.org/lkml/2014/4/29/457. The reason for pushing this patch ahead instead of waiting until 3.17 is that the NMI-based stack traces are messing up sysrq output, and in some cases also messing up the system as well." Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents 4b660a7 + 61f38db commit e14505a

31 files changed

Lines changed: 1210 additions & 412 deletions

‎Documentation/RCU/00-INDEX‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ lockdep-splat.txt
1212
- RCU Lockdep splats explained.
1313
NMI-RCU.txt
1414
- Using RCU to Protect Dynamic NMI Handlers
15+
rcu_dereference.txt
16+
- Proper care and feeding of return values from rcu_dereference()
1517
rcubarrier.txt
1618
- RCU and Unloadable Modules
1719
rculist_nulls.txt

‎Documentation/RCU/checklist.txt‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,16 @@ over a rather long period of time, but improvements are always welcome!
114114
http://www.openvms.compaq.com/wizard/wiz_2637.html
115115

116116
The rcu_dereference() primitive is also an excellent
117-
documentation aid, letting the person reading the code
118-
know exactly which pointers are protected by RCU.
117+
documentation aid, letting the person reading the
118+
code know exactly which pointers are protected by RCU.
119119
Please note that compilers can also reorder code, and
120120
they are becoming increasingly aggressive about doing
121-
just that. The rcu_dereference() primitive therefore
122-
also prevents destructive compiler optimizations.
121+
just that. The rcu_dereference() primitive therefore also
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.
123127

124128
The rcu_dereference() primitive is used by the
125129
various "_rcu()" list-traversal primitives, such

0 commit comments

Comments
 (0)