• Frederic Weisbecker's avatar
    posix-timers: Cleanup reaped target handling · e26d70d2
    Frederic Weisbecker authored
    When a timer's target is seen to be buried, for example on calls
    to timer_gettime(), the posix cpu timers code behaves a bit
    like a garbage collector and releases early the reference to the
    task.
    
    Then again, this optimization complicates the code for no much
    value: it's up to the user to release the timer and its associated
    ressources by calling timer_delete() after it buries the target
    tasks.
    
    Remove this to simplify the code.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Kosaki Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    e26d70d2
posix-cpu-timers.c 38.6 KB