From: Oleg Nesterov Date: Wed, 23 Jul 2008 16:52:05 +0000 (+0400) Subject: posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun X-Git-Tag: v2.6.27-rc3~49^2^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54da1174922cddd4be83d5a364b2e0fdd693f513;p=linux-2.6 posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last, this discards the already accumulated overruns. Signed-off-by: Oleg Nesterov Cc: Mark McLoughlin Cc: Oliver Pinter Cc: Roland McGrath Cc: stable@kernel.org Cc: Andrew Morton Signed-off-by: Thomas Gleixner --- diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index dbd8398ddb..814a2bb8d2 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c @@ -289,7 +289,7 @@ void do_schedule_next_timer(struct siginfo *info) else schedule_next_timer(timr); - info->si_overrun = timr->it_overrun_last; + info->si_overrun += timr->it_overrun_last; } if (timr)