diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-08-01 14:29:20 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-09-23 07:42:50 -0700 |
commit | a82dcc76021e22c174ba85d90b7a8c750b7362d0 (patch) | |
tree | f65ef1af700610b9e3e59545d2bf13e4cac33876 /kernel/rcutree_plugin.h | |
parent | 5cc900cf55fe58aaad93767c5a526e2a69cbcbc6 (diff) |
rcu: Make offline-CPU checking allow for indefinite delays
The rcu_implicit_offline_qs() function implicitly assumed that execution
would progress predictably when interrupts are disabled, which is of course
not guaranteed when running on a hypervisor. Furthermore, this function
is short, and is called from one place only in a short function.
This commit therefore ensures that the timing is checked before
checking the condition, which guarantees correct behavior even given
indefinite delays. It also inlines rcu_implicit_offline_qs() into
rcu_implicit_dynticks_qs().
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree_plugin.h')
0 files changed, 0 insertions, 0 deletions