]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Documentation: Remove bogus claim about del_timer_sync()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Oct 2025 15:02:41 +0000 (00:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:31 +0000 (14:04 +0100)
commit9520f03e04c4a30aabd907ad3dbe4ca2c4ac65e5
tree08b9eb5c99a77a9f95b396529fc0664642ed64a9
parentf37de8dec6a4c379b4b8486003a1de00ff8cff3b
Documentation: Remove bogus claim about del_timer_sync()

[ Upstream commit b0b0aa5d858d4d2fe39a5e4486e0550e858108f6 ]

del_timer_sync() does not return the number of times it tried to delete the
timer which rearms itself. It's clearly documented:

 The function returns whether it has deactivated a pending timer or not.

This part of the documentation is from 2003 where del_timer_sync() really
returned the number of deletion attempts for unknown reasons. The code
was rewritten in 2005, but the documentation was not updated.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Link: https://lore.kernel.org/r/20221123201624.452282769@linutronix.de
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/kernel-hacking/locking.rst
Documentation/translations/it_IT/kernel-hacking/locking.rst