Skip to content

timer: Fix missing dynticks kick

Frederic Weisbecker lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2timer: Store cpu-number in 'struct tvec_base'kernel/timer.c+2 -00 replies
2/2timer: Kick dynticks targets on mod_timer*() callskernel/timer.c+16 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] timer: Fix missing dynticks kick

Thomas,

Viresh has spotted and fixed an interesting issue. When a timer list is enqueued or updated on a (idle or full) dynticks target, we kick it with an IPI.

At least that's what we do on add_timer_on() but the mod_timer*() family doesn't handle that. I think that's because we had assumptions that mod_timer() never enqueues to remote idle targets. But that's subject to subtle races where a CPU can become dynticks-idle between a call to get_nohz_timer_target() and the time we actually lock the new target.

Moreover we forgot to handle full dynticks targets selected by __mod_timer().

That patchset should fixes all those issues.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/missing-kick

Thanks,
Frederic
---

Viresh Kumar (2):
timer: Store cpu-number in 'struct tvec_base'
timer: Kick dynticks targets on mod_timer*() calls

 kernel/timer.c | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)