Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114Ab0LUOWb (ORCPT ); Tue, 21 Dec 2010 09:22:31 -0500 Received: from mail-fx0-f43.google.com ([209.85.161.43]:46289 "EHLO mail-fx0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237Ab0LUOWa (ORCPT ); Tue, 21 Dec 2010 09:22:30 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=VekDuU9eKPQpIIjUhgDoBOIh8s0g5tezFIVPpXyp7a+Ey2xPaC18YWPxmzCRjGHSrN wypuMYUes11vAQHrAHLIk8zK8FDjGvARsyybtQLkm7T+XdcZH8gtQ5XHo/6ODGmHWmKa ZeAAJ0pn8AHXYCfWLxfCQNdIbp8H3N9Ug1lFg= Date: Tue, 21 Dec 2010 15:22:25 +0100 From: Frederic Weisbecker To: Peter Zijlstra Cc: LKML , Thomas Gleixner , "Paul E. McKenney" , Ingo Molnar , Steven Rostedt , Lai Jiangshan , Andrew Morton , Anton Blanchard , Tim Pepper Subject: Re: [RFC PATCH 14/15] nohz_task: Clear nohz task attribute on exit() Message-ID: <20101221142223.GH1750@nowhere> References: <1292858662-5650-1-git-send-email-fweisbec@gmail.com> <1292858662-5650-15-git-send-email-fweisbec@gmail.com> <1292862628.5021.45.camel@laptop> <20101221014807.GN1715@nowhere> <1292918865.5021.196.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1292918865.5021.196.camel@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 26 On Tue, Dec 21, 2010 at 09:07:45AM +0100, Peter Zijlstra wrote: > On Tue, 2010-12-21 at 02:48 +0100, Frederic Weisbecker wrote: > > On Mon, Dec 20, 2010 at 05:30:28PM +0100, Peter Zijlstra wrote: > > > On Mon, 2010-12-20 at 16:24 +0100, Frederic Weisbecker wrote: > > > > > > > > Clear the nohz task attribute when a task exits, clear the cpu > > > > mask and restart the tick if necessary. > > > > > > > I'm not quite sure this all makes sense, I mean, we're going from 1 to 0 > > > tasks, right? > > > > Not necessarily, other tasks can be on the runqueue while that nohz task > > exits, or we can be alone in which case the tick might be stopped and > > we need to restart it because rq->nr_running > 1 won't make much sense > > anymore without the nohz task and if a new task gets enqueued, the tick > > won't restart until a second one gets in. > > Urgh, so that mask is set even if you're not currently in that mode? > That's 'interesting'.. I don't get what you mean. -- 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/