posix-timers: Add proper comments in do_timer_create()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Apr 2023 18:49:19 +0000 (20:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 18 Jun 2023 20:41:51 +0000 (22:41 +0200)
commit52f090b164b59c06a4da87c0599424809a6bba16
treeed9931eccc6d0d584158d80348936e844e1f8f30
parent640fe745d7d4b6e47f3b455cb5de99a08c6b6d23
posix-timers: Add proper comments in do_timer_create()

The comment about timer lifetime at the end of the function is misplaced
and uncomprehensible.

Make it understandable and put it at the right place. Add a new comment
about the visibility of the new timer ID to user space.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20230425183313.619897296@linutronix.de
kernel/time/posix-timers.c