09 Oct, 2020
1 commit
-
…k/linux-rcu into core/rcu
Pull v5.10 RCU changes from Paul E. McKenney:
- Debugging for smp_call_function().
- Strict grace periods for KASAN. The point of this series is to find
RCU-usage bugs, so the corresponding new RCU_STRICT_GRACE_PERIOD
Kconfig option depends on both DEBUG_KERNEL and RCU_EXPERT, and is
further disabled by dfefault. Finally, the help text includes
a goodly list of scary caveats.- New smp_call_function() torture test.
- Torture-test updates.
- Documentation updates.
- Miscellaneous fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
25 Aug, 2020
4 commits
-
I noticed a double-() in the deprecated.rst rendering today. Fix that
one and two others in the Documentation/ tree.Acked-by: "Paul E. McKenney" # For RCU
Signed-off-by: Kees Cook
Link: https://lore.kernel.org/r/20200817233207.4083538-1-keescook@chromium.org
Signed-off-by: Jonathan Corbet -
Drop the doubled words "to" and "for".
Signed-off-by: Randy Dunlap
Cc: Jonathan Corbet
Cc: linux-doc@vger.kernel.org
Cc: "Paul E. McKenney"
Cc: Josh Triplett
Cc: Steven Rostedt
Cc: Mathieu Desnoyers
Cc: Lai Jiangshan
Cc: Joel Fernandes
Cc: rcu@vger.kernel.org
Signed-off-by: Paul E. McKenney -
Drop the doubled word "the".
Signed-off-by: Randy Dunlap
Cc: Jonathan Corbet
Cc: linux-doc@vger.kernel.org
Cc: "Paul E. McKenney"
Cc: Josh Triplett
Cc: Steven Rostedt
Cc: Mathieu Desnoyers
Cc: Lai Jiangshan
Cc: Joel Fernandes
Cc: rcu@vger.kernel.org
Signed-off-by: Paul E. McKenney -
s/sychronize_rcu/synchronize_rcu/
Signed-off-by: Tobias Klauser
Signed-off-by: Paul E. McKenney
04 Aug, 2020
1 commit
-
Pull RCU updates from Ingo Molnar:
- kfree_rcu updates
- RCU tasks updates
- Read-side scalability tests
- SRCU updates
- Torture-test updates
- Documentation updates
- Miscellaneous fixes
* tag 'core-rcu-2020-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (109 commits)
torture: Remove obsolete "cd $KVM"
torture: Avoid duplicate specification of qemu command
torture: Dump ftrace at shutdown only if requested
torture: Add kvm-tranform.sh script for qemu-cmd files
torture: Add more tracing crib notes to kvm.sh
torture: Improve diagnostic for KCSAN-incapable compilers
torture: Correctly summarize build-only runs
torture: Pass --kmake-arg to all make invocations
rcutorture: Check for unwatched readers
torture: Abstract out console-log error detection
torture: Add a stop-run capability
torture: Create qemu-cmd in --buildonly runs
rcu/rcutorture: Replace 0 with false
torture: Add --allcpus argument to the kvm.sh script
torture: Remove whitespace from identify_qemu_vcpus output
rcutorture: NULL rcu_torture_current earlier in cleanup code
rcutorture: Handle non-statistic bang-string error messages
torture: Set configfile variable to current scenario
rcutorture: Add races with task-exit processing
locktorture: Use true and false to assign to bool variables
...
21 Jul, 2020
1 commit
-
The [smp_]read_barrier_depends() barrier macros no longer exist as
part of the Linux memory model, so remove all references to them from
the Documentation/ directory.Although this is fairly mechanical on the whole, we drop the "CACHE
COHERENCY" section entirely from 'memory-barriers.txt' as it doesn't
make any sense now that the dependency barriers have been removed.Acked-by: Peter Zijlstra (Intel)
Acked-by: Paul E. McKenney
Signed-off-by: Will Deacon
30 Jun, 2020
10 commits
-
Protecting the code in a trampoline can also require protecting a
number of instructions prior to actually entering the trampoline.
For example, these earlier instructions might be computing the address
of the trampoline. This commit therefore updates RCU's requirements to
record this for posterity.Link: https://lore.kernel.org/lkml/20200511154824.09a18c46@gandalf.local.home/
Reported-by: Lai Jiangshan
Reported-by: Steven Rostedt
Signed-off-by: Paul E. McKenney -
Over the past few years, there have been several cases where timekeeping
bugs have caused RCU CPU stall warnings, particularly during hardware
bringup. This commit therefore adds such bugs to the list of things
that can result in RCU CPU stall warnings.Signed-off-by: Paul E. McKenney
-
Since changeset 58ad30cf91f0 ("docs: fix reference to core-api/namespaces.rst"),
auto-references for chapters are generated. This is a nice feature, but
has a drawback: no chapters can have the same sumber.So, we need to add two higher hierarchy chapters on this document,
in order to avoid such duplication.Fixes: 58ad30cf91f0 ("docs: fix reference to core-api/namespaces.rst")
Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document and section titles;
- Fix list markups;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document title;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document and section titles;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document title;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document title;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Add a document title;
- Some whitespace fixes and new line breaks;
- Mark literal blocks as such;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney -
- Add a SPDX header;
- Adjust document title;
- Some whitespace fixes and new line breaks;
- Use the right list markups;
- Add it to RCU/index.rst.Signed-off-by: Mauro Carvalho Chehab
Signed-off-by: Paul E. McKenney
28 Apr, 2020
1 commit
-
The scheduler is currently required to hold rq/pi locks across the entire
RCU read-side critical section or not at all. This is inconvenient and
leaves traps for the unwary, including the author of this commit.But now that excessively long grace periods enable scheduling-clock
interrupts for holdout nohz_full CPUs, the nohz_full rescue logic in
rcu_read_unlock_special() can be dispensed with. In other words, the
rcu_read_unlock_special() function can refrain from doing wakeups unless
such wakeups are guaranteed safe.This commit therefore avoids unsafe wakeups, freeing the scheduler to
hold rq/pi locks across rcu_read_unlock() even if the corresponding RCU
read-side critical section might have been preempted. This commit also
updates RCU's requirements documentation.This commit is inspired by a patch from Lai Jiangshan:
https://lore.kernel.org/lkml/20191102124559.1135-2-laijs@linux.alibaba.com
This commit is further intended to be a step towards his goal of permitting
the inlining of RCU-preempt's rcu_read_lock() and rcu_read_unlock().Cc: Lai Jiangshan
Signed-off-by: Paul E. McKenney
27 Feb, 2020
8 commits
-
For testing mainline, the kvm.sh rcutorture script is the preferred
approach to testing. This commit therefore adds it to the torture.txt
documentation.Signed-off-by: Paul E. McKenney
-
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
listRCU.rst document gives an example with 'ipc_lock()', but the
function has dropped off by commit 82061c57ce93 ("ipc: drop
ipc_lock()"). Because the main logic of 'ipc_lock()' has melded in
'shm_lock()' by the commit, this commit updates the document to use
'shm_lock()' instead.Reviewed-by: Madhuparna Bhowmik
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
Commit ccc9971e2147 ("docs: rcu: convert some articles from html to
ReST") has converted a few of html RCU docs into ReST files, but a few
of html tags which not supported on rst is remaining. This commit
converts those to ReST appropriate alternatives.Reviewed-by: Madhuparna Bhowmik
Signed-off-by: SeongJae Park
Signed-off-by: Paul E. McKenney -
- Add more information about RCU list patterns taking examples
from audit subsystem in the linux kernel.- Keep the current audit examples, even though the kernel has changed.
- Modify inline text for better passage quality.
- Fix typo in code-blocks and improve code comments.
- Add text formatting (italics, bold and code) for better emphasis.
Patch originally submitted at
https://lore.kernel.org/patchwork/patch/1082804/Co-developed-by: Amol Grover
Signed-off-by: Amol Grover
Signed-off-by: Joel Fernandes (Google)
Signed-off-by: Paul E. McKenney
25 Jan, 2020
2 commits
-
…_rcu.2020.01.24a', 'list.2020.01.10a', 'preempt.2020.01.24a' and 'torture.2019.12.09a' into HEAD
doc.2019.12.10a: Documentations updates
exp.2019.12.09a: Expedited grace-period updates
fixes.2020.01.24a: Miscellaneous fixes
kfree_rcu.2020.01.24a: Batch kfree_rcu() work
list.2020.01.10a: RCU-protected-list updates
preempt.2020.01.24a: Preemptible RCU updates
torture.2019.12.09a: Torture-test updates -
This commit removes kfree_rcu() special-casing and the lazy-callback
handling from Tree RCU. It moves some of this special casing to Tiny RCU,
the removal of which will be the subject of later commits.This results in a nice negative delta.
Suggested-by: Paul E. McKenney
Signed-off-by: Joel Fernandes (Google)
[ paulmck: Add slab.h #include, thanks to kbuild test robot . ]
Signed-off-by: Paul E. McKenney
11 Dec, 2019
7 commits
-
Reported-by: Jens Axboe
Signed-off-by: Paul E. McKenney -
This patch updates the list of RCU API in whatisRCU.rst.
Signed-off-by: Madhuparna Bhowmik
Tested-by: Amol Grover
Tested-by: Phong Tran
Signed-off-by: Paul E. McKenney -
Convert rcubarrier.txt to rcubarrier.rst and add it to index.rst.
Format file according to reST
- Add headings and sub-headings
- Add code segments
- Add cross-references to quizes and answersSigned-off-by: Amol Grover
Tested-by: Phong Tran
Signed-off-by: Paul E. McKenney -
This patch converts rcu_dereference.txt to rcu_dereference.rst and
adds it to index.rstSigned-off-by: Amol Grover
Signed-off-by: Paul E. McKenney -
This commit updates whatisRCU.txt to the new .rst format.
This change includes:- Formatting bullet lists
- Adding literal blocks
- Links from table of contents to corresponding sections
- Links to external documents
- Reformat quick quizzesSigned-off-by: Phong Tran
Tested-by: Madhuparna Bhowmik
[ tranmanphong: Apply Amol Grover feedback. ]
Reviewed-by: Amol Grover
Signed-off-by: Paul E. McKenney -
This patch converts NMI-RCU from txt to rst format.
Also adds NMI-RCU in the index.rst file.Signed-off-by: Madhuparna Bhowmik
[ paulmck: Apply feedback from Phong Tran. ]
Tested-by: Phong Tran
Signed-off-by: Paul E. McKenney -
This patch converts arrayRCU from .txt to .rst format, and also adds
it to the index.rst file.Signed-off-by: Madhuparna Bhowmik
[ paulmck: Trimmed trailing whitespace. ]
Tested-by: Phong Tran
Tested-by: Amol Grover
Signed-off-by: Paul E. McKenney
29 Oct, 2019
5 commits
-
While Paul was explaining some RCU magic I noticed a typo in
rcu_note_context_switch(). As a result, this commit replaces
rcu_node_context_switch() with rcu_note_context_switch().Signed-off-by: Sebastian Andrzej Siewior
Signed-off-by: Paul E. McKenney -
This commit updates the documentation with information about
usage of lockdep with list_for_each_entry_rcu().Signed-off-by: Joel Fernandes (Google)
[ paulmck: Wordsmithing. ]
Signed-off-by: Paul E. McKenney -
This restores docs back in ReST format.
Signed-off-by: Joel Fernandes (Google)
[ paulmck: Added Joel's SoB per Stephen Rothwell feedback. ]
[ paulmck: Joel approved via private email. ]
Signed-off-by: Paul E. McKenney -
This restores docs back in ReST format.
Signed-off-by: Joel Fernandes (Google)
[ paulmck: Added Joel's SoB per Stephen Rothwell feedback. ]
[ paulmck: Joel approved via private email. ]
Signed-off-by: Paul E. McKenney -
These documents are long and have various sections. Provide a good
toc nesting level.Signed-off-by: Joel Fernandes (Google)
Signed-off-by: Paul E. McKenney