Received: by 10.192.165.148 with SMTP id m20csp2133327imm; Thu, 3 May 2018 10:55:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZprywtSEKm6VqVML3nYlPDj5G1pxOXNKO0I2HwauQzpJcW40XrVbw/HHGw65z+3X3RNMk3R X-Received: by 2002:a17:902:5304:: with SMTP id b4-v6mr24219541pli.231.1525370144630; Thu, 03 May 2018 10:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525370144; cv=none; d=google.com; s=arc-20160816; b=0H9xdE6dcXi05AtFrISVd8vCWdZfGYE8Jz0eb3Gi+WUEoiYNl0OfI3VHbM06lZ65LO 0ZKapGSemwbZSvuvZ9E8TWwg7iG4CguJb4FjQC494kMyNfH0xU3QnFKcGsyFCWpkBJ6V RXL7Y1f4PYSOyS8Hg34ziJYsA+p/LhdWyfbv4RYEbnnmZz/I6AzyuccV6JS7wc4tmRwZ MtwkOdq74+cLVPQkfzfyvOKJieW28z5DIRIEFj8354hYbGn0Ki/yN8fYi0YVy4dtATBM zEza8PArRpWWVnLfid3NPkHr4zrthWo8NdNXHBzd3e3/kaZC/a1I6FVaHVPuGBdDIU6p AsxA== 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=iqvm0WBJ7Z8J4fKdnn6ScVGw9ORPi40IU9BTjc4iyyA=; b=hx4sKjDYmnwSIa6x6c7dN8GYpwX+XiZkHdRHvW+7IJQhApyWXbNGzJNcGqc00ebPtA Po0Eu4jKk62P8anTMeQuBcNy/bwTDAFaAvkOrqEP/VqfS+WYzpKXy1y0ULklONVcjke5 cb7ylRceIaJDwri14dxZA3PnyeiIZiGQnAzA2AlTCpLNP9v/qXLWjVDUaXU7YYBl81qw 98K6lU0wbe6LjXiXHSw+ymB80HjSPsxXlciTizz0KwKJf/po70LFZgBIN6Up3jVIveI1 5WBWRnRpbiTKT3DS/wvXErhsVBX4Z7ZfqumnGauwdkmDLwdIcSp9PQalcGEKAnG23Ooz vOoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rZyMHMLw; 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 j5-v6si5943895pgq.104.2018.05.03.10.55.29; Thu, 03 May 2018 10:55:44 -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=merlin.20170209 header.b=rZyMHMLw; 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 S1751287AbeECRzN (ORCPT + 99 others); Thu, 3 May 2018 13:55:13 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45734 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947AbeECRzL (ORCPT ); Thu, 3 May 2018 13:55:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=iqvm0WBJ7Z8J4fKdnn6ScVGw9ORPi40IU9BTjc4iyyA=; b=rZyMHMLw6no0MiGGNtr1aRGkr npnSfvEDKw8Lbn8sUTShDv0FCjhLKoydYfwwwRGxBFP1xI/gTapLEI+Hor5J7lNw65RJxfZ+FVhUT AXZ4eDwrL3yXQ4Jdsfulp+vf5ocofKyuwPLnfgyf4mkg3wSq54t6NKmD1Uc8Z1ISv8WjfEcIBwbEO 10122VGixpHflpl36jhVhEv0ujqRmd6QDwaXqyqFympnh521gNCfHuFmJpsj3LTa8fs/fjqP44C+A 6d6jO83olV3f7MpKkrz3zHZxQ3D+tF9oiTF2mSRx4cwEqO2S7EXE9vX/j+SWMRPCavc6H5ayALSD/ P4iaRVmyw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEIRY-0007ti-Ui; Thu, 03 May 2018 17:55:01 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 61E83202ACE60; Thu, 3 May 2018 19:54:56 +0200 (CEST) Date: Thu, 3 May 2018 19:54:56 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Mike Galbraith , Matt Fleming , Ingo Molnar , linux-kernel@vger.kernel.org, Michal Hocko Subject: Re: cpu stopper threads and load balancing leads to deadlock Message-ID: <20180503175456.GI12217@hirez.programming.kicks-ass.net> References: <20180503122808.GZ12217@hirez.programming.kicks-ass.net> <1525351221.9956.4.camel@gmx.de> <20180503124943.GB12217@hirez.programming.kicks-ass.net> <1525354359.5576.1.camel@gmx.de> <20180503135617.GC12217@hirez.programming.kicks-ass.net> <1525357015.5577.2.camel@gmx.de> <20180503144450.GD12217@hirez.programming.kicks-ass.net> <20180503161231.GI26088@linux.vnet.ibm.com> <20180503164508.GG12217@hirez.programming.kicks-ass.net> <20180503171850.GL26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503171850.GL26088@linux.vnet.ibm.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 Thu, May 03, 2018 at 10:18:50AM -0700, Paul E. McKenney wrote: > > + if (per_cpu(rcu_cpu_started, cpu)) > > I would log a non-splat dmesg the first time this happened, just for my > future sanity, but otherwise looks fine. I am a bit concerned about > calls to rcu_cpu_starting() getting sprinkled all through the code. > Or am I being excessively paranoid? Don't think so, but lets first see if this at all works. If not we'll need to figure out something else anyway.