Skip to content

Handle timers added to offlined CPU(s).

Imran Khan lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2timers: WARN if add_timer_on is used with offlined cpu.kernel/time/timer.c+6 -02 replies
2/2timers: introduce timer_try_add_on_cpu.include/linux/timer.h kernel/time/timer.c+34 -03 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] Handle timers added to offlined CPU(s).

This patchset is in continuation of issue discussed in [1]. Currently there is a possibilty that users of add_timer_on, can (mistakenly) use it for starting a timer on an offlined cpu. As expected such timers will not give desired result. This patchset:

i. (PATCH 1) WARNs users of add_timer_on, if they are using it with
offlined CPU.
ii. (PATCH 2) Introduces an alternative interface that could be used, to ensure that timer gets started only on an online cpu.

Imran Khan (2):
timers: WARN if add_timer_on is used with offlined cpu.
timers: introduce timer_try_add_on_cpu.

 include/linux/timer.h |  1 +
 kernel/time/timer.c   | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

base-commit: e7bb221a638962d487231ac45a6699fb9bb8f9fa

[1]: https://lore.kernel.org/all/[email protected]/

Signature · 1 line
2.34.1