From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754375Ab0KKQj7 (ORCPT ); Thu, 11 Nov 2010 11:39:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31665 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041Ab0KKQj6 (ORCPT ); Thu, 11 Nov 2010 11:39:58 -0500 Date: Thu, 11 Nov 2010 17:32:43 +0100 From: Oleg Nesterov To: Peter Zijlstra Cc: Raistlin , Ingo Molnar , Thomas Gleixner , Steven Rostedt , Chris Friesen , Frederic Weisbecker , Darren Hart , Johan Eker , "p.faure" , linux-kernel , Claudio Scordino , michael trimarchi , Fabio Checconi , Tommaso Cucinotta , Juri Lelli , Nicola Manica , Luca Abeni , Dhaval Giani , Harald Gustafsson , paulmck Subject: Re: [RFC][PATCH 06/22] sched: SCHED_DEADLINE handles spacial kthreads Message-ID: <20101111163242.GA5697@redhat.com> References: <1288333128.8661.137.camel@Palantir> <1288333876.8661.147.camel@Palantir> <1289486096.2084.123.camel@laptop> <20101111152750.GA2510@redhat.com> <1289490202.2084.140.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1289490202.2084.140.camel@laptop> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/11, Peter Zijlstra wrote: > > On Thu, 2010-11-11 at 16:27 +0100, Oleg Nesterov wrote: > > > > Sorry, can't resist, off-topic quiestion. Do we really need > > migration_call()->migrate_live_tasks() ? > > > > With the recent changes, try_to_wake_up() can never choose > > the dead (!cpu_online) cpu if the task was deactivated. > > > > Looks like we should only worry about the running tasks, and > > migrate_dead_tasks()->pick_next_task() loop seems to all work > > we need. > > > > (Of course, we can't just remove migrate_live_tasks(), at leat > > migrate_dead() needs simple changes). > > > > What do you think? > > Yes, I think we can make that work, we could even move that > migrate_live_tasks() into CPU_DYING, which is before this point. Hmm, I think you are right. In this case we can also simplify migrate-from-dead-cpu paths, we know that nobody can touch rq->lock, every CPU runs stop_machine_cpu_stop() with irqs disabled. No need to get/put task_struct, etc. Oleg.