Skip to content

Commit f466ae6

Browse files
committed
rcu: Remove cond_resched() from Tiny synchronize_sched()
It is now legal to invoke synchronize_sched() at early boot, which causes Tiny RCU's synchronize_sched() to emit spurious splats. This commit therefore removes the cond_resched() from Tiny RCU's synchronize_sched(). Fixes: 8b355e3 ("rcu: Drive expedited grace periods from workqueue") Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: <stable@vger.kernel.org> # 4.9.0-
1 parent a121103 commit f466ae6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/rcu/tiny.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,13 @@ static __latent_entropy void rcu_process_callbacks(struct softirq_action *unused
185185
* benefits of doing might_sleep() to reduce latency.)
186186
*
187187
* Cool, huh? (Due to Josh Triplett.)
188-
*
189-
* But we want to make this a static inline later. The cond_resched()
190-
* currently makes this problematic.
191188
*/
192189
void synchronize_sched(void)
193190
{
194191
RCU_LOCKDEP_WARN(lock_is_held(&rcu_bh_lock_map) ||
195192
lock_is_held(&rcu_lock_map) ||
196193
lock_is_held(&rcu_sched_lock_map),
197194
"Illegal synchronize_sched() in RCU read-side critical section");
198-
cond_resched();
199195
}
200196
EXPORT_SYMBOL_GPL(synchronize_sched);
201197

0 commit comments

Comments
 (0)