Skip to content

timers: Provide timer_shutdown[_sync]()

Jeongjun Park linux-bluetooth lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Documentation: Remove bogus claim about del_timer_sync()Documentation/kernel-hacking/locking.rst Documentation/translations/it_IT/kernel-hacking/locking.rst+2 -51 reply
2/12ARM: spear: Do not use timer namespace for timer_shutdown() functionarch/arm/mach-spear/time.c+4 -40 replies
3/12clocksource/drivers/arm_arch_timer: Do not use timer namespace for timer_shutdown() functiondrivers/clocksource/arm_arch_timer.c+6 -60 replies
4/12clocksource/drivers/sp804: Do not use timer namespace for timer_shutdown() functiondrivers/clocksource/timer-sp804.c+3 -30 replies
5/12timers: Replace BUG_ON()skernel/time/timer.c+6 -50 replies
6/12Documentation: Replace del_timer/del_timer_sync()Documentation/RCU/Design/Requirements/Requirements.rst Documentation/core-api/local_ops.rst Documentation/kernel-hacking/locking.rst +3 more+14 -150 replies
7/12timers: Silently ignore timers with a NULL functionkernel/time/timer.c+52 -50 replies
8/12timers: Split [try_to_]del_timer[_sync]() to prepare for shutdown modekernel/time/timer.c+92 -510 replies
9/12timers: Add shutdown mechanism to the internal functionskernel/time/timer.c+54 -80 replies
10/12timers: Provide timer_shutdown[_sync]()include/linux/timer.h kernel/time/timer.c+68 -00 replies
11/12timers: Update the documentation to reflect on the new timer_shutdown() APIDocumentation/RCU/Design/Requirements/Requirements.rst Documentation/core-api/local_ops.rst Documentation/kernel-hacking/locking.rst +1 more+8 -30 replies
12/12Bluetooth: hci_qca: Fix the teardown problem for realdrivers/bluetooth/hci_qca.c+8 -20 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchJacob KellerAnna-Maria BehnsenGuenter RoeckArnd BergmannViresh KumarMarc ZyngierLuiz Augusto von Dentz
1/12R-b R-b
2/12R-b R-b T-b R-b A-b A-b
3/12R-b R-b T-b R-b A-b
4/12R-b R-b T-b R-b
5/12R-b R-b T-b
6/12R-b R-b
7/12R-b R-b T-b
8/12R-b R-b T-b
9/12R-b R-b T-b
10/12R-b R-b T-b
11/12R-b R-b T-b
12/12R-b R-b T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 6.1.y 00/12] timers: Provide timer_shutdown[_sync]()

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/[email protected]/

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(-)