|
|
Log in / Subscribe / Register

timers: Provide timer_shutdown[_sync]()

From:  Jeongjun Park <aha310510-AT-gmail.com>
To:  stable-AT-vger.kernel.org
Subject:  [PATCH 6.1.y 00/12] timers: Provide timer_shutdown[_sync]()
Date:  Sat, 11 Oct 2025 00:02:40 +0900
Message-ID:  <20251010150252.1115788-1-aha310510@gmail.com>
Cc:  gregkh-AT-linuxfoundation.org, tglx-AT-linutronix.de, Julia.Lawall-AT-inria.fr, akpm-AT-linux-foundation.org, anna-maria-AT-linutronix.de, arnd-AT-arndb.de, linux-bluetooth-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-AT-roeck-us.net, luiz.dentz-AT-gmail.com, marcel-AT-holtmann.org, maz-AT-kernel.org, peterz-AT-infradead.org, rostedt-AT-goodmis.org, sboyd-AT-kernel.org, viresh.kumar-AT-linaro.org
Archive-link:  Article

The "timers: Provide timer_shutdown[_sync]()" patch series implemented a
useful feature that addresses various bugs caused by attempts to rearm
shutdown timers.

https://lore.kernel.org/all/20221123201306.823305113@linu...

However, this patch series was not fully backported to versions prior to
6.2, requiring separate patches for older kernels if these bugs were
encountered.

The biggest problem with this is that even if these bugs were discovered
and patched in the upstream kernel, if the maintainer or author didn't
create a separate backport patch for versions prior to 6.2, the bugs would
remain untouched in older kernels.

Therefore, to reduce the hassle of having to write a separate patch, we
should backport the remaining unbackported commits from the
"timers: Provide timer_shutdown[_sync]()" patch series to versions prior
to 6.2.

---
 Documentation/RCU/Design/Requirements/Requirements.rst      |   2 +-
 Documentation/core-api/local_ops.rst                        |   2 +-
 Documentation/kernel-hacking/locking.rst                    |  17 ++++---
 Documentation/timers/hrtimers.rst                           |   2 +-
 Documentation/translations/it_IT/kernel-hacking/locking.rst |  14 +++--
 Documentation/translations/zh_CN/core-api/local_ops.rst     |   2 +-
 arch/arm/mach-spear/time.c                                  |   8 +--
 drivers/bluetooth/hci_qca.c                                 |  10 +++-
 drivers/clocksource/arm_arch_timer.c                        |  12 ++---
 drivers/clocksource/timer-sp804.c                           |   6 +--
 include/linux/timer.h                                       |   2 +
 kernel/time/timer.c                                         | 311 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
 12 files changed, 299 insertions(+), 89 deletions(-)



Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds