Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp937582imm; Wed, 6 Jun 2018 08:05:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5i948o93whaP85YnaVi+BIh+rLXpx8ddn6Qg475FVGK2vgmQXGVqMnrGvr99XhVTYwamU X-Received: by 2002:a17:902:1029:: with SMTP id b38-v6mr3564301pla.277.1528297548265; Wed, 06 Jun 2018 08:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528297548; cv=none; d=google.com; s=arc-20160816; b=En2J37i+oVYZdugVwQAr5hq3IlsD+bp0pZbxDVyEgPowlTPNrtkOx0lJuUN/pmjfog VY+BaDLePpXyol75U+kVabyA07ORQqP97b4X320wkO2bf5Xe3zSkCapuglW/1GuA3l8r oclhSC3GBThzzqYaclvcMFaS5byc01Sj9xvQ5u9L/mdK9jm4lH7MJSrWUAyFkskNXuTW GIDSv3OQBIqcOtKPXH9kmv1vxl8LGjr7TGO0r+UEnFGPZ1X91LxScVXwUYFiYI3YC+vQ /JZYupC4551y1AkB7TF6eG6vhlqVrvegGpkGrs8DVhsLJ2WPw///wRtwxtprfcWPNPhP MB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=gn5LGk39xog8cvsA11u4TIA4+iUUwj1agnw/E6H3Mko=; b=ajCbc9E1nOoWRrRhreTVKEGhs2Y3AFEEBA1fSUgPGlg7C3c5zOLBO/8A4R/nPkPPiy aLFHvjCZ41kdeoQ3kXnf8vJB4B2R8Go4cUZCDx41SVWqwS47Xyi65monWH8zRkEMAWLH Zb/YZYLx642zxSX7MbJzCS8IAgdeAGEKpjqE5S3N4XawGkMbCzJ+7v+acDFJdKlESsyZ sS5ntKYdP7WzLhmvl1KsxIersvUzsihPxQycKKe+gF+4aP2LPHBqSh/dArxywhtF3k/M 9mHMaPsHDkkyGvzM7JF7FmEbBK871iS8DoI6Y4fEoCewALGdgUlIdaRqI2ppMN5sBYHD bi2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C++fEgAR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9-v6si18259259pgo.570.2018.06.06.08.05.31; Wed, 06 Jun 2018 08:05:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=C++fEgAR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285AbeFFPEg (ORCPT + 99 others); Wed, 6 Jun 2018 11:04:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:51276 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbeFFPEe (ORCPT ); Wed, 6 Jun 2018 11:04:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gn5LGk39xog8cvsA11u4TIA4+iUUwj1agnw/E6H3Mko=; b=C++fEgARZKA0xwpRDSBoQZaDp h9T2KwkCDh/GqbW0J15uBgaqUBy3rRcDYMwh4Ve1eqkIJadAHOxE3S8WkkdRK4/2wfYqMhwIAjwe0 fjiPc3ZQeBW1kjFgg3/h0nweHvoHRcYX3e3PTNEJPEb3R7+CrD/iW7FUuFZcpbfyTuViTSBLhzph0 dtP9Zv3LBeyUHk5yvtNj2/Dovsjgniz14AZg5lj4kTbvnE7FV3AzUImwHx7/OJn9Mk3UOj/vutWCD +9oB2H/of3DvlZMof8ER+TngO5rmAHC8pZ/lOnkXK1KBrXz7XIXZgeWUgHeEuChncvJzg1IFy44Hy CcJdhtgaQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQZzB-0001Kh-RL; Wed, 06 Jun 2018 15:04:30 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 41F2D201EA7AB; Wed, 6 Jun 2018 17:04:28 +0200 (CEST) Date: Wed, 6 Jun 2018 17:04:28 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: "Kohli, Gaurav" , tglx@linutronix.de, mpe@ellerman.id.au, mingo@kernel.org, bigeasy@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Neeraj Upadhyay , Will Deacon Subject: Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup Message-ID: <20180606150428.GG12180@hirez.programming.kicks-ass.net> References: <830d7225-af90-a55a-991a-bb2023d538f1@codeaurora.org> <55221a5b-dd52-3359-f582-86830dd9f205@codeaurora.org> <20180605150841.GA24053@redhat.com> <20180605152212.GY12180@hirez.programming.kicks-ass.net> <20180605154053.GB12235@hirez.programming.kicks-ass.net> <20180605163515.GB24053@redhat.com> <20180605201316.GZ12198@hirez.programming.kicks-ass.net> <20180606135115.GA4609@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606135115.GA4609@redhat.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 06, 2018 at 03:51:16PM +0200, Oleg Nesterov wrote: > And I really think we should unexport kthread_park/unpark(), only smpboot_thread_fn() > should use them. kthread() should not play with __kthread_parkme(). And even > KTHREAD_SHOULD_PARK must die, I mean it should live in struct smp_hotplug_thread, > not in struct kthread. I tend to agree; however we need to fix drm and md first, because they already use them :-(