Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754783Ab3FGJFr (ORCPT ); Fri, 7 Jun 2013 05:05:47 -0400 Received: from www.linutronix.de ([62.245.132.108]:45122 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751671Ab3FGJFo (ORCPT ); Fri, 7 Jun 2013 05:05:44 -0400 Date: Fri, 7 Jun 2013 11:05:43 +0200 From: Sebastian Andrzej Siewior To: Zhao Chenhui Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, leoli@freescale.com, scottwood@freescale.com, Priyanka.Jain@freescale.com Subject: Re: [PATCH][RFC] kernel/cpu: do not change the cpus_allowed of the current task when unplugging cpus Message-ID: <20130607090543.GD10280@linutronix.de> References: <1368699439-13034-1-git-send-email-chenhui.zhao@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1368699439-13034-1-git-send-email-chenhui.zhao@freescale.com> X-Key-Id: 97C4700B X-Key-Fingerprint: 09E2 D1F3 9A3A FF13 C3D3 961C 0688 1C1E 97C4 700B 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: 779 Lines: 18 * Zhao Chenhui | 2013-05-16 18:17:19 [+0800]: >We found a problem. When a cpu is brought down using _cpu_down(), >the corresponding cpu bit in the cpus_allowed of the current task is >cleared. But this bit will not be set when the same cpu is online again. >Then, the current task and its child processes will not be allowed to >run on this cpu. Isn't this what should happen? This also happens on mainline if you leave the RT bits out, right? You should be able to put the task back on the CPU once the CPU is up again. Sebastian -- 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/