| commit | 9182a90790b045543ede1fa830fb128d2c92f13c | [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 20:32:29 2017 -0700 |
| tree | 11b2c27931b778e959539c5780c4b8c2ff529021 | |
| parent | 3f211ef98c52a0cd4cfd2f96c54b3724e5ed248b [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>