Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752959AbbFCKps (ORCPT ); Wed, 3 Jun 2015 06:45:48 -0400 Received: from casper.infradead.org ([85.118.1.10]:35536 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbbFCKpm (ORCPT ); Wed, 3 Jun 2015 06:45:42 -0400 Date: Wed, 3 Jun 2015 12:45:34 +0200 From: Peter Zijlstra To: Kirill Tkhai Cc: "umgwanakikbuti@gmail.com" , "mingo@elte.hu" , "ktkhai@parallels.com" , "rostedt@goodmis.org" , "juri.lelli@gmail.com" , "pang.xunlei@linaro.org" , "oleg@redhat.com" , "linux-kernel@vger.kernel.org" , "luca.abeni@unitn.it" Subject: Re: [RFC][PATCH 3/7] sched: Allow balance callbacks for check_class_changed() Message-ID: <20150603104534.GB3644@twins.programming.kicks-ass.net> References: <20150601135818.506080835@infradead.org> <20150601140839.852669281@infradead.org> <449191433253514@web6g.yandex.ru> <1433255230.1495.2.camel@twins> <20150602160724.GS18673@twins.programming.kicks-ass.net> <249151433262439@web6m.yandex.ru> <20150603073227.GW3644@twins.programming.kicks-ass.net> <226151433328161@web20o.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <226151433328161@web20o.yandex.ru> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 22 On Wed, Jun 03, 2015 at 01:42:41PM +0300, Kirill Tkhai wrote: > [resend] > > 03.06.2015, 10:32, "Peter Zijlstra" : > > On Tue, Jun 02, 2015 at 07:27:19PM +0300, Kirill Tkhai wrote: > >>> ?+ * task_dead_dl() will cancel our timer if we happen to die while > >>> ?+ * its still pending. > >> ?task_dead_dl() is called for tasks of deadline class only. So if we do that, > >> ?the timer may be executed after final task's dead. > > > > Indeed; sleep deprived brain misses the obvious :/ > > I have an idea, but it require small hrtimer modification. We may use > task_struct counters {get,put}_task_struct(), when we're starting or cancelling > the timer, and in timer handler. But it require to return back the commit: Yeah, already working on that. :-) -- 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/