Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753948Ab0A2RQn (ORCPT ); Fri, 29 Jan 2010 12:16:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753541Ab0A2RQn (ORCPT ); Fri, 29 Jan 2010 12:16:43 -0500 Received: from casper.infradead.org ([85.118.1.10]:33031 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058Ab0A2RQm (ORCPT ); Fri, 29 Jan 2010 12:16:42 -0500 Subject: Re: [PATCH tracing/kprobes] kprobes: Disable booster when CONFIG_PREEMPT=y From: Peter Zijlstra To: Mathieu Desnoyers Cc: Masami Hiramatsu , Ingo Molnar , Thomas Gleixner , Fr??d??ric Weisbecker , Steven Rostedt , lkml , systemtap , DLE , Ananth N Mavinakayanahalli , Jim Keniston In-Reply-To: <20100129170817.GA2283@Krystal> References: <4B5E476C.9030303@redhat.com> <20100127215531.24775.26807.stgit@dhcp-100-2-132.bos.redhat.com> <20100129092135.GE10878@elte.hu> <4B62F61D.5060203@redhat.com> <20100129170817.GA2283@Krystal> Content-Type: text/plain; charset="UTF-8" Date: Fri, 29 Jan 2010 18:15:38 +0100 Message-ID: <1264785338.24455.14.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 29 On Fri, 2010-01-29 at 12:08 -0500, Mathieu Desnoyers wrote: > > If a task is set as stopped, and the preempted before calling schedule, > can this result in a preempted task staying in that state for an > arbitrary long period of time ? Or is there some mechanism prohibiting > that in the scheduler ? PREEMPT_ACTIVE does that: preempt_schedule() add_preempt_count(PREEMPT_ACTIVE); schedule(); schedule() if (prev->state && !(preempt_count() & PREEMPT_ACTIVE)) { if (unlikely(signal_pending_state(prev->state, prev))) prev->state = TASK_RUNNING; else deactivate_task(rq, prev, 1); switch_count = &prev->nvcsw; } -- 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/