public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Handle timers added to offlined CPU(s).
@ 2025-01-15 13:41 Imran Khan
  2025-01-15 13:41 ` [PATCH 1/2] timers: WARN if add_timer_on is used with offlined cpu Imran Khan
  2025-01-15 13:41 ` [PATCH 2/2] timers: introduce timer_try_add_on_cpu Imran Khan
  0 siblings, 2 replies; 8+ messages in thread
From: Imran Khan @ 2025-01-15 13:41 UTC (permalink / raw)
  To: anna-maria, frederic, tglx; +Cc: linux-kernel

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/0a83e9e1-3e85-4c33-bec8-6b60e6216bd8@oracle.com/
-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-28  3:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 13:41 [PATCH 0/2] Handle timers added to offlined CPU(s) Imran Khan
2025-01-15 13:41 ` [PATCH 1/2] timers: WARN if add_timer_on is used with offlined cpu Imran Khan
2025-01-15 14:39   ` Thomas Gleixner
2025-01-15 15:10     ` imran.f.khan
2025-01-15 13:41 ` [PATCH 2/2] timers: introduce timer_try_add_on_cpu Imran Khan
2025-01-15 16:04   ` Thomas Gleixner
2025-01-15 17:00     ` imran.f.khan
2025-01-28  3:36       ` imran.f.khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox