Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753712AbaBMKOL (ORCPT ); Thu, 13 Feb 2014 05:14:11 -0500 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:52567 "EHLO e28smtp06.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbaBMKOH (ORCPT ); Thu, 13 Feb 2014 05:14:07 -0500 Message-ID: <52FC99F8.4020002@linux.vnet.ibm.com> Date: Thu, 13 Feb 2014 15:40:00 +0530 From: Preeti U Murthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Alex Shi CC: Daniel Lezcano , Preeti Murthy , Peter Zijlstra , mingo@kernel.org, LKML , Lists linaro-kernel Subject: Re: [PATCH V2 2/3] sched: Fix race in idle_balance() References: <1391728237-4441-1-git-send-email-daniel.lezcano@linaro.org> <1391728237-4441-3-git-send-email-daniel.lezcano@linaro.org> <52FA0577.6080607@linaro.org> <52FC7835.1090509@linaro.org> In-Reply-To: <52FC7835.1090509@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14021310-9574-0000-0000-00000BEE371A Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 02/13/2014 01:15 PM, Alex Shi wrote: > On 02/11/2014 07:11 PM, Daniel Lezcano wrote: >> On 02/10/2014 10:24 AM, Preeti Murthy wrote: >>> HI Daniel, >>> >>> Isn't the only scenario where another cpu can put an idle task on >>> our runqueue, >> >> Well, I am not sure to understand what you meant, but I assume you are >> asking if it is possible to have a task to be pulled when we are idle, >> right ? >> >> This patch fixes the race when the current cpu is *about* to enter idle >> when calling schedule(). > > Preeti said the she didn't see a possible to insert a task on the cpu. > > I also did a quick check, maybe task come from wakeup path? Yes this is possible. Thanks for pointing this :) Reviewed-by: Preeti U Murthy > -- 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/