timers: Update the documentation to reflect on the new timer_shutdown() API
[linux-block.git] / Documentation / kernel-hacking / locking.rst
index c5b8678ed232c8e43b0f14337d7be7ab905accc8..c756786e17aea3d9081a61720611e898c846bb3d 100644 (file)
@@ -1007,6 +1007,11 @@ calling add_timer() at the end of their timer function).
 Because this is a fairly common case which is prone to races, you should
 use timer_delete_sync() (``include/linux/timer.h``) to handle this case.
 
+Before freeing a timer, timer_shutdown() or timer_shutdown_sync() should be
+called which will keep it from being rearmed. Any subsequent attempt to
+rearm the timer will be silently ignored by the core code.
+
+
 Locking Speed
 =============