* [PATCH 2/2] posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun
@ 2008-07-23 16:52 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2008-07-23 16:52 UTC (permalink / raw)
To: Andrew Morton
Cc: Ingo Molnar, Mark McLoughlin, Oliver Pinter, Roland McGrath,
Thomas Gleixner, linux-kernel, stable
do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last,
this discards the already accumulated overruns.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 26-rc2/kernel/posix-timers.c~2_SNT_OVERRUN 2008-07-23 15:04:18.000000000 +0400
+++ 26-rc2/kernel/posix-timers.c 2008-07-23 20:24:05.000000000 +0400
@@ -289,7 +289,7 @@ void do_schedule_next_timer(struct sigin
else
schedule_next_timer(timr);
- info->si_overrun = timr->it_overrun_last;
+ info->si_overrun += timr->it_overrun_last;
}
if (timr)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-23 16:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-23 16:52 [PATCH 2/2] posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®