From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755289Ab1ATGMY (ORCPT ); Thu, 20 Jan 2011 01:12:24 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:47906 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752239Ab1ATGMW (ORCPT ); Thu, 20 Jan 2011 01:12:22 -0500 X-Authenticated: #14349625 X-Provags-ID: V01U2FsdGVkX18ZGd1288EZ6d0kJldFZRZiNMm+Zs66aLRlS6DO9U NUmmZXGeo5kBuO Subject: Re: Bug in scheduler when using rt_mutex From: Mike Galbraith To: Yong Zhang Cc: Peter Zijlstra , samu.p.onkalo@nokia.com, mingo@elte.hu, "linux-kernel@vger.kernel.org" , tglx , Steven Rostedt In-Reply-To: References: <1295275365.12840.13.camel@kolo> <1295280032.30950.128.camel@laptop> <1295339012.11678.35.camel@kolo> <1295357746.30950.681.camel@laptop> <1295430276.30950.1414.camel@laptop> <1295433498.30950.1482.camel@laptop> <1295436632.30950.1542.camel@laptop> <1295441881.11678.41.camel@kolo> <1295442799.11678.43.camel@kolo> <1295443822.28776.23.camel@laptop> <1295499568.8027.30.camel@marge.simson.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 20 Jan 2011 07:12:18 +0100 Message-ID: <1295503938.8027.59.camel@marge.simson.net> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-01-20 at 13:30 +0800, Yong Zhang wrote: > On Thu, Jan 20, 2011 at 12:59 PM, Mike Galbraith wrote: > > or the task is enqueued > > at it's last offset as usual for runnable tasks. > > But shouldn't we task the tasks as WAKEUP, through the task has been > waked on other sched_class? We don't need to play any games with it afaiks, just normalize it, and the rest is taken care of automatically. > IOW, I wonder if we should play with place_entity() at some point. If the task returns as a sleeper, place entity() will be called when it is awakened, so it's sleep credit will be clipped as usual. So vruntime can be much less than min_vruntime at class exit time, and it doesn't matter, clipping on wakeup after re-entry takes care of it.. if that's what you were thinking about. -Mike