Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbbFDGqP (ORCPT ); Thu, 4 Jun 2015 02:46:15 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:46886 "EHLO e23smtp08.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbbFDGqH (ORCPT ); Thu, 4 Jun 2015 02:46:07 -0400 Message-ID: <556FF3F8.1070507@linux.vnet.ibm.com> Date: Thu, 04 Jun 2015 12:15:12 +0530 From: Shreyas B Prabhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Michael Neuling CC: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Make doorbell check preemption safe References: <1432062014-9115-1-git-send-email-shreyas@linux.vnet.ibm.com> <1432083608.20823.19.camel@neuling.org> In-Reply-To: <1432083608.20823.19.camel@neuling.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: 15060406-0029-0000-0000-000001A86B48 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 29 On Wednesday 20 May 2015 06:30 AM, Michael Neuling wrote: > On Wed, 2015-05-20 at 00:30 +0530, Shreyas B. Prabhu wrote: >> Doorbell can be used to cause ipi on cpus which are sibling threads on >> the same core. So icp_native_cause_ipi checks if the destination cpu >> is a sibling thread of the current cpu and uses doorbell in such cases. >> >> But while running with CONFIG_PREEMPT=y, since this section is >> preemtible, we can run into issues if after we check if the destination >> cpu is a sibling cpu, the task gets migrated from a sibling cpu to a >> cpu on another core. >> >> Fix this by using get_cpu()/ put_cpu() > > Thanks. Looks good and it's boots for me. > > Signed-off-by: Michael Neuling > mikey, Thanks! mpe, if this looks ok, can you please pick it up? -- 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/