Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1701016ybh; Sun, 4 Aug 2019 07:45:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSA4H2J9zCgIDJTUZmdaA6++yGiMhCjRhFYZ64brYDrDyEiW0rm9rEMwtEN4lDoI3uAgvZ X-Received: by 2002:a63:e54f:: with SMTP id z15mr132035628pgj.4.1564929931846; Sun, 04 Aug 2019 07:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564929931; cv=none; d=google.com; s=arc-20160816; b=vi34eGsS73K/rI4gAfwSTG+oRETEp8RFXQx2ZZuONmZi3beuZCcnHl98OAjBC91CE3 NyxhnegjCvUlCOm/WzxAFqRZBlidvCQ0kk+oN/Aq/7pMy2ga2ZinfEI/I6km87bewZa4 NDonMca61P0SCrX8iwyOq2ah/mddzsWTH9YE11vGQXKSvATg2ZnYewTn5JwLybcRrNP6 oZzhMm5Fan7sJ3+pojnSC9ruZObQKmnkL9lnOp6f1od/iOvc1fN4Quk1WkMpTsr3+VPK /zSPwGDuA8eNRfTG+0ttCceJw2mOTUE6DVG0F2c/kigRgBrqTNYkhRn0OQOy1HkqmD1A 6HDg== 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; bh=5rdh5G3lzzyq4EoUCDQ5vzYWt2z2/ddaXxkgEfQ0PHo=; b=pj0ysph8P6YFVxcviU3007lrdcIHh/F6DAH+Qm8cmV3CiF20glgE/eb/1foM1R2ES6 mF6hX6sKn/8x8d4e/4aYKR7WhT0PAFDtyZ9BnqXOCwNcrjw1YswX4sLIL70E5uHgrN6D 8GfjOzINjwxrLXwcC+NzWGCOVQuHJX7Gb5CqpCZ3FqWeYa5vS2qQLQDaXC/g891Fe/IX Uux88q3+xEv6sxZ53V4aseUbpiEXfYpcfAGlDvd16nfVK5Y9VAcJATGUsu7LNHiX0vd0 NBnPE4voQdwSLrsuwPDztOzRVBWr0b/VZcWhJqOEEpW/ldJBchsCdkMX9ZQxlhbhtGWQ 0CPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=IVjn9fgQ; 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 a17si43610251pfa.45.2019.08.04.07.44.48; Sun, 04 Aug 2019 07:45:31 -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=IVjn9fgQ; 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 S1726368AbfHDOoL (ORCPT + 99 others); Sun, 4 Aug 2019 10:44:11 -0400 Received: from merlin.infradead.org ([205.233.59.134]:43142 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfHDOoK (ORCPT ); Sun, 4 Aug 2019 10:44:10 -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=5rdh5G3lzzyq4EoUCDQ5vzYWt2z2/ddaXxkgEfQ0PHo=; b=IVjn9fgQ9/E+g8+WjfQVMK8Q5 j3vCPYCzAnTsHuLB3r5Um+aCRhNQoONqJDIW+mm7keg+rMTJOYyuQx3tLtFpeCUwFnt4qPMdU/eJV Y7y4b2LNzuhyq3dJ2QdG42K6fm+WX1m2hC1UzI0/vL2zzszTBpt+WEc43P+4zqMHji7qRWpHAp/Jz 214HVmu6/gHGEDUGbm9p9pHYDE/TE3qnvT3YPoLCkfwD9GWuSMZmO9f/XnK5RwL7LlyrcgeXGx8q2 TvtPgbj3uCporq3u8KsFfM7TXQainyMrQ5LwTpdcZrHMtS+fb54fKAVLSRsGVIDaK2o6x47Sda/0g Es6Wam6GA==; 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.92 #3 (Red Hat Linux)) id 1huHjE-0007Le-Lx; Sun, 04 Aug 2019 14:43:21 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CAEA2202989CD; Sun, 4 Aug 2019 16:43:17 +0200 (CEST) Date: Sun, 4 Aug 2019 16:43:17 +0200 From: Peter Zijlstra To: "Paul E. McKenney" Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org Subject: Re: [PATCH RFC tip/core/rcu 14/14] rcu/nohz: Make multi_cpu_stop() enable tick on all online CPUs Message-ID: <20190804144317.GF2349@hirez.programming.kicks-ass.net> References: <20190802151435.GA1081@linux.ibm.com> <20190802151501.13069-14-paulmck@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190802151501.13069-14-paulmck@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 02, 2019 at 08:15:01AM -0700, Paul E. McKenney wrote: > The multi_cpu_stop() function relies on the scheduler to gain control from > whatever is running on the various online CPUs, including any nohz_full > CPUs running long loops in kernel-mode code. Lack of the scheduler-clock > interrupt on such CPUs can delay multi_cpu_stop() for several minutes > and can also result in RCU CPU stall warnings. This commit therefore > causes multi_cpu_stop() to enable the scheduler-clock interrupt on all > online CPUs. This sounds wrong; should we be fixing sched_can_stop_tick() instead to return false when the stop task is runnable?