From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754114AbbJGN1Y (ORCPT ); Wed, 7 Oct 2015 09:27:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49054 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbbJGN1U (ORCPT ); Wed, 7 Oct 2015 09:27:20 -0400 Date: Wed, 7 Oct 2015 15:24:03 +0200 From: Oleg Nesterov To: Peter Zijlstra Cc: heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, Tejun Heo , Ingo Molnar , Rik van Riel Subject: Re: [RFC][PATCH] sched: Start stopper early Message-ID: <20151007132403.GA24924@redhat.com> References: <20151007084110.GX2881@worktop.programming.kicks-ass.net> <20151007123046.GA21460@redhat.com> <20151007123852.GH17308@twins.programming.kicks-ass.net> <20151007132007.GA24540@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151007132007.GA24540@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Damn sorry for noise ;) On 10/07, Oleg Nesterov wrote: > > +void stop_machine_park(int cpu) > +{ > + struct cpu_stopper *stopper = &per_cpu(cpu_stopper, cpu); > + > + spin_lock(&stopper->lock); > + stopper->enabled = false; > + spin_unlock(&stopper->lock); Of course, it should also do kthread_park(current). Oleg.