diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-11-30 17:24:30 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-10-10 00:25:17 +0300 |
commit | f79c3ad6189624c3de0ad5521610c9e22a1c33cf (patch) | |
tree | 82bfe610ef11d2dbaf120f7ddbbc250ec4f917fb /Documentation/bus-virt-phys-mapping.txt | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff) | |
download | linux-f79c3ad6189624c3de0ad5521610c9e22a1c33cf.tar.xz |
sched,rcu: Make cond_resched() provide RCU quiescent state
There is some confusion as to which of cond_resched() or
cond_resched_rcu_qs() should be added to long in-kernel loops.
This commit therefore eliminates the decision by adding RCU quiescent
states to cond_resched(). This commit also simplifies the code that
used to interact with cond_resched_rcu_qs(), and that now interacts with
cond_resched(), to reduce its overhead. This reduction is necessary to
allow the heavier-weight cond_resched_rcu_qs() mechanism to be invoked
everywhere that cond_resched() is invoked.
Part of that reduction in overhead converts the jiffies_till_sched_qs
kernel parameter to read-only at runtime, thus eliminating the need for
bounds checking.
Reported-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
[ paulmck: Keep PREEMPT=n cond_resched a no-op, per Peter Zijlstra. ]
Diffstat (limited to 'Documentation/bus-virt-phys-mapping.txt')
0 files changed, 0 insertions, 0 deletions