Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972AbYGWQsz (ORCPT ); Wed, 23 Jul 2008 12:48:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752768AbYGWQsr (ORCPT ); Wed, 23 Jul 2008 12:48:47 -0400 Received: from x346.tv-sign.ru ([89.108.83.215]:49528 "EHLO mail.screens.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbYGWQsr (ORCPT ); Wed, 23 Jul 2008 12:48:47 -0400 Date: Wed, 23 Jul 2008 20:52:05 +0400 From: Oleg Nesterov To: Andrew Morton Cc: Ingo Molnar , Mark McLoughlin , Oliver Pinter , Roland McGrath , Thomas Gleixner , linux-kernel@vger.kernel.org, stable@kernel.org Subject: [PATCH 2/2] posix-timers: do_schedule_next_timer: fix the setting of ->si_overrun Message-ID: <20080723165205.GA4295@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 22 do_schedule_next_timer() sets info->si_overrun = timr->it_overrun_last, this discards the already accumulated overruns. Signed-off-by: Oleg Nesterov --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/