Skip to content

timers: Provide timer_shutdown[_sync]()

Jeongjun Park linux-bluetooth linux-staging lkml stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 20 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15Documentation: Remove bogus claim about del_timer_sync()Documentation/kernel-hacking/locking.rst Documentation/translations/it_IT/kernel-hacking/locking.rst+2 -51 reply
2/15ARM: spear: Do not use timer namespace for timer_shutdown() functionarch/arm/mach-spear/time.c+4 -41 reply
3/15clocksource/drivers/arm_arch_timer: Do not use timer namespace for timer_shutdown() functiondrivers/clocksource/arm_arch_timer.c+6 -61 reply
4/15clocksource/drivers/sp804: Do not use timer namespace for timer_shutdown() functiondrivers/clocksource/timer-sp804.c+3 -31 reply
5/15timers: Get rid of del_singleshot_timer_sync()drivers/char/tpm/tpm-dev-common.c drivers/staging/wlan-ng/hfa384x_usb.c drivers/staging/wlan-ng/prism2usb.c +3 more+9 -111 reply
6/15timers: Replace BUG_ON()skernel/time/timer.c+6 -51 reply
7/15timers: Rename del_timer() to timer_delete()include/linux/timer.h kernel/time/timer.c+17 -41 reply
8/15Documentation: Replace del_timer/del_timer_sync()Documentation/RCU/Design/Requirements/Requirements.rst Documentation/core-api/local_ops.rst Documentation/kernel-hacking/locking.rst +2 more+13 -141 reply
9/15timers: Silently ignore timers with a NULL functionkernel/time/timer.c+52 -51 reply
10/15timers: Split [try_to_]del_timer[_sync]() to prepare for shutdown modekernel/time/timer.c+92 -511 reply
11/15timers: Add shutdown mechanism to the internal functionskernel/time/timer.c+54 -81 reply
12/15timers: Provide timer_shutdown[_sync]()include/linux/timer.h kernel/time/timer.c+68 -01 reply
13/15timers: 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+7 -21 reply
14/15Bluetooth: hci_qca: Fix the teardown problem for realdrivers/bluetooth/hci_qca.c+8 -21 reply
15/15timers: Fix NULL function pointer race in timer_shutdown_sync()kernel/time/timer.c+4 -32 replies

Reviews trailers per patch

14 of 15 patches have a Reviewed-by or Acked-by.

PatchJacob KellerAnna-Maria BehnsenGuenter RoeckArnd BergmannViresh KumarMarc ZyngierSteven Rostedt (Google)Luiz Augusto von Dentz
1/15R-b R-b R-b R-b
2/15R-b R-b R-b R-b T-b R-b T-b R-b A-b A-b A-b A-b
3/15R-b R-b R-b R-b T-b R-b T-b R-b A-b A-b
4/15R-b R-b R-b R-b T-b R-b T-b R-b
5/15R-b R-b R-b R-b T-b T-b
6/15R-b R-b R-b R-b T-b T-b
7/15R-b R-b R-b R-b T-b T-b R-b R-b
8/15R-b R-b R-b R-b
9/15R-b R-b R-b R-b T-b T-b
10/15R-b R-b R-b R-b T-b T-b
11/15R-b R-b R-b R-b T-b T-b
12/15R-b R-b R-b R-b T-b T-b
13/15R-b R-b R-b R-b T-b T-b
14/15R-b R-b R-b R-b T-b T-b A-b A-b
15/15

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

Read the v1 thread

Cover letter [PATCH 5.10.y 00/15] 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 ++---
 arch/arm/mach-spear/time.c                                  |   8 +--
 drivers/bluetooth/hci_qca.c                                 |  10 ++-
 drivers/char/tpm/tpm-dev-common.c                           |   4 +-
 drivers/clocksource/arm_arch_timer.c                        |  12 ++--
 drivers/clocksource/timer-sp804.c                           |   6 +-
 drivers/staging/wlan-ng/hfa384x_usb.c                       |   4 +-
 drivers/staging/wlan-ng/prism2usb.c                         |   6 +-
 include/linux/timer.h                                       |  17 ++++-
 kernel/time/timer.c                                         | 316 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------
 net/sunrpc/xprt.c                                           |   2 +-
 15 files changed, 322 insertions(+), 100 deletions(-)