Please sign in to comment.
timerfd: Fix wakeup of processes when timer is cancelled on clock change
Currently processes waiting with poll on cancelable timerfd timers are not woken up when the timers are canceled. When the system time is set the clock_was_set() function calls timerfd_clock_was_set() to cancel and wake up processes waiting on potential cancelable timerfd timers. However the wake up currently has no effect because in the case of timerfd_read it is dependent on ctx->ticks not being 0. timerfd_poll also requires ctx->ticks being non zero. As a consequence processes waiting on cancelable timers only get woken up when the timers expire. This patch fixes this by incrementing ctx->ticks before calling wake_up. Signed-off-by: Max Asbock <firstname.lastname@example.org> Cc: email@example.com Cc: firstname.lastname@example.org Cc: johnstul <email@example.com> Link: http://firstname.lastname@example.org Signed-off-by: Thomas Gleixner <email@example.com>
- Loading branch information...