From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616AbbDXSdN (ORCPT ); Fri, 24 Apr 2015 14:33:13 -0400 Received: from casper.infradead.org ([85.118.1.10]:49315 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbbDXSdK (ORCPT ); Fri, 24 Apr 2015 14:33:10 -0400 Date: Fri, 24 Apr 2015 20:32:55 +0200 From: Peter Zijlstra To: pang.xunlei@zte.com.cn Cc: Steven Rostedt , Juri Lelli , linux-kernel@vger.kernel.org, Xunlei Pang Subject: Re: Re: [PATCH v6 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases Message-ID: <20150424183255.GO23123@twins.programming.kicks-ass.net> References: <1429518168-7965-1-git-send-email-xlpang@126.com> <1429518168-7965-2-git-send-email-xlpang@126.com> <20150420105228.461e103c@gandalf.local.home> <20150420172048.GZ27490@worktop.programming.kicks-ass.net> <20150420134803.5446e32d@gandalf.local.home> <20150422230122.3637f11f@grimm.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Apr 23, 2015 at 02:53:27PM +0800, pang.xunlei@zte.com.cn wrote: > But for yield() or RR scheduling when running out of time slice, > I think this would be still inappropriate, am I missing something? Those two have explicit hooks you can use to do the right queueing with. Look at yield_task_rt() and task_tick_rt() both end up doing requeue_task_rt(), which is exactly what you want, no?