Re: [PATCH 2/5] srcu: Initialize SRCU after timers

2021-04-09 Thread Paul E. McKenney
On Fri, Apr 09, 2021 at 12:38:59AM +0200, Frederic Weisbecker wrote: > Once srcu_init() is called, the SRCU core is free to queue delayed > workqueues, which rely on timers. However init_timers() is called > several steps after rcu_init(). Any call_srcu() in-between would finish > its course

[PATCH 2/5] srcu: Initialize SRCU after timers

2021-04-08 Thread Frederic Weisbecker
Once srcu_init() is called, the SRCU core is free to queue delayed workqueues, which rely on timers. However init_timers() is called several steps after rcu_init(). Any call_srcu() in-between would finish its course inside a dangerously uninitialized timer core. Make sure we stay in early SRCU