diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-31 21:12:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-31 21:12:07 -0400 |
commit | 7073bc66126e3ab742cce9416ad6b4be8b03c4f7 (patch) | |
tree | 18f7d5f3de8a6070481d347e792d9d358813b6b7 /scripts | |
parent | d4c90396ed7ef9b4e4d221e008e54be8bea8307f (diff) | |
parent | f612a7b1a7f1b5139f228724ce340aac24720591 (diff) |
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull RCU updates from Ingo Molnar:
"The main RCU changes in this cycle are:
- the combination of tree geometry-initialization simplifications and
OS-jitter-reduction changes to expedited grace periods. These two
are stacked due to the large number of conflicts that would
otherwise result.
- privatize smp_mb__after_unlock_lock().
This commit moves the definition of smp_mb__after_unlock_lock() to
kernel/rcu/tree.h, in recognition of the fact that RCU is the only
thing using this, that nothing else is likely to use it, and that
it is likely to go away completely.
- documentation updates.
- torture-test updates.
- misc fixes"
* 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (60 commits)
rcu,locking: Privatize smp_mb__after_unlock_lock()
rcu: Silence lockdep false positive for expedited grace periods
rcu: Don't disable CPU hotplug during OOM notifiers
scripts: Make checkpatch.pl warn on expedited RCU grace periods
rcu: Update MAINTAINERS entry
rcu: Clarify CONFIG_RCU_EQS_DEBUG help text
rcu: Fix backwards RCU_LOCKDEP_WARN() in synchronize_rcu_tasks()
rcu: Rename rcu_lockdep_assert() to RCU_LOCKDEP_WARN()
rcu: Make rcu_is_watching() really notrace
cpu: Wait for RCU grace periods concurrently
rcu: Create a synchronize_rcu_mult()
rcu: Fix obsolete priority-boosting comment
rcu: Use WRITE_ONCE in RCU_INIT_POINTER
rcu: Hide RCU_NOCB_CPU behind RCU_EXPERT
rcu: Add RCU-sched flavors of get-state and cond-sync
rcu: Add fastpath bypassing funnel locking
rcu: Rename RCU_GP_DONE_FQS to RCU_GP_DOING_FQS
rcu: Pull out wait_event*() condition into helper function
documentation: Describe new expedited stall warnings
rcu: Add stall warnings to synchronize_sched_expedited()
...
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d5c8e9a3a73c..a51ca0e5beef 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -5011,6 +5011,7 @@ sub process { | |||
5011 | "memory barrier without comment\n" . $herecurr); | 5011 | "memory barrier without comment\n" . $herecurr); |
5012 | } | 5012 | } |
5013 | } | 5013 | } |
5014 | |||
5014 | # check for waitqueue_active without a comment. | 5015 | # check for waitqueue_active without a comment. |
5015 | if ($line =~ /\bwaitqueue_active\s*\(/) { | 5016 | if ($line =~ /\bwaitqueue_active\s*\(/) { |
5016 | if (!ctx_has_comment($first_line, $linenr)) { | 5017 | if (!ctx_has_comment($first_line, $linenr)) { |
@@ -5018,6 +5019,24 @@ sub process { | |||
5018 | "waitqueue_active without comment\n" . $herecurr); | 5019 | "waitqueue_active without comment\n" . $herecurr); |
5019 | } | 5020 | } |
5020 | } | 5021 | } |
5022 | |||
5023 | # Check for expedited grace periods that interrupt non-idle non-nohz | ||
5024 | # online CPUs. These expedited can therefore degrade real-time response | ||
5025 | # if used carelessly, and should be avoided where not absolutely | ||
5026 | # needed. It is always OK to use synchronize_rcu_expedited() and | ||
5027 | # synchronize_sched_expedited() at boot time (before real-time applications | ||
5028 | # start) and in error situations where real-time response is compromised in | ||
5029 | # any case. Note that synchronize_srcu_expedited() does -not- interrupt | ||
5030 | # other CPUs, so don't warn on uses of synchronize_srcu_expedited(). | ||
5031 | # Of course, nothing comes for free, and srcu_read_lock() and | ||
5032 | # srcu_read_unlock() do contain full memory barriers in payment for | ||
5033 | # synchronize_srcu_expedited() non-interruption properties. | ||
5034 | if ($line =~ /\b(synchronize_rcu_expedited|synchronize_sched_expedited)\(/) { | ||
5035 | WARN("EXPEDITED_RCU_GRACE_PERIOD", | ||
5036 | "expedited RCU grace periods should be avoided where they can degrade real-time response\n" . $herecurr); | ||
5037 | |||
5038 | } | ||
5039 | |||
5021 | # check of hardware specific defines | 5040 | # check of hardware specific defines |
5022 | if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) { | 5041 | if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) { |
5023 | CHK("ARCH_DEFINES", | 5042 | CHK("ARCH_DEFINES", |