[PATCH 2/2] posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun

From: Oleg Nesterov
Date: Wed Jul 23 2008 - 12:48:56 EST


do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last,
this discards the already accumulated overruns.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- 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)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/