| commit | 704d94514c1f10e860808eef4b1cb47320ee7c7f | [log] [tgz] |
|---|---|---|
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Sat Nov 04 12:51:01 2017 -0700 |
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Sat Nov 04 15:51:24 2017 -0700 |
| tree | 22615b908217251acb8481196c6d5a98ff22d1ce | |
| parent | fcd9a1d22d31f88fc86a66bfa3b40c8f5d0b9df1 [diff] |
sched: Allow RCU-tasks GPs to complete in PREEMPT kernels Given a long in-kernel loop in a CONFIG_PREEMPT=y kernel, the task in question will take a potentially unbounded period of time to arrive at a quiescent state. Use of cond_resched() won't help because this primitive is a no-op in CONFIG_PREEMPT=y kernels. This commit therefore makes CONFIG_PREEMPT=y cond_resched() invoke rcu_note_voluntary_context_switch_lite(). Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>