Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3740286ybt; Tue, 23 Jun 2020 09:33:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCoouV9bjS/MTWqqEko2luqv/WG5AqBU8qMCy0YGpXkPo8yjZ2pdL4NG5Hc2R6H7lXWOCr X-Received: by 2002:a17:906:4350:: with SMTP id z16mr20762008ejm.139.1592930027255; Tue, 23 Jun 2020 09:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592930027; cv=none; d=google.com; s=arc-20160816; b=ASrc5XcqaVpYAXrnseZeJDRkkW4a4RxkpYK+1Hj9YpOaHGhNq2CFtEyYLBt2aIdTnk k2xoWipvx2vEJeEfYUFm1w1Q66bKfaTjSEdbSfojd/LzHgEhHwXNzTvvCvHH3dpIVqNB GSzGgxhpuQKY+JCVlooti2gI5ZlL0CH77sJ7tqyqU/kQe/HmIGsfzppAUfp1LzEetyNY NwpZfyFCWrarqfIdmh1dRNvP3S6YqBTxje5IPneX5SHZ927B0xEYCB6cDX77uZ4QqFbB l8jwaUuutaGsx1Z98D7oK7ASq+64sajWAWVIxEfYKA0TWxdWlPLb7Sv+wCWpERggAFOK 8g3Q== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=V67PM0MXwH7AxZhKRadaNRJzPTP3iOszlq89TuLO7KE=; b=ZASCabn1/VncHIM1JwIWP/QFb5FjZU5eU6lUoTWgqLCl7xe7hFUqIV4/IaJfx46fYo wzijPDzOkRtqdKBgHK0lz8m6g395xPieb+7a8G3WvJCOxbSr5xpcdAppCNDT5sP+kSaa Cx1bZuyc5Oi7ccaxvURvI04xS+qfCqbh/48WKZzXt0dqbpMQtluJLKmgxh3yAD/s+0DX 2R6Y+1BVTugbnymCMgDqJmgyJ0oB1I0fCjwrgfsOWjjB4WQIrOblDuDwnlimptp1oD3K s7PS2sq4Kz/wXHJInTIswCV68N2GKurNiJUMsixcVfXpCZRRfPleSZIkdCpNPLFx/StH wK8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kfCT6QLV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wp10si10945278ejb.56.2020.06.23.09.33.24; Tue, 23 Jun 2020 09:33:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kfCT6QLV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732525AbgFWQ3k (ORCPT + 99 others); Tue, 23 Jun 2020 12:29:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:41408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732236AbgFWQ3k (ORCPT ); Tue, 23 Jun 2020 12:29:40 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A83F6206D4; Tue, 23 Jun 2020 16:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592929779; bh=mbaaoMZTzav02bOHei4uXB3XoJg3Dnr+E13AuHoDQBI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=kfCT6QLVgEmqi31KGs2QpUAdI0azvG9avr9O61z25PZoaWFLv2NTb1IZClCTaucRM /g1iABIs3YDnimuiPOboaMNjRSJBugszB0c50d8lUMqfi1gQHbZ9aEaqIe11kAMo4F 2RFW/skFBcIU3Mhm9Il/eDXlvaf43S5n/XdjlZtA= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 8BFB03522657; Tue, 23 Jun 2020 09:29:39 -0700 (PDT) Date: Tue, 23 Jun 2020 09:29:39 -0700 From: "Paul E. McKenney" To: Joel Fernandes Cc: Neeraj Upadhyay , josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu/tree: Force quiescent state on callback overload Message-ID: <20200623162939.GJ9247@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <1592764647-2452-1-git-send-email-neeraju@codeaurora.org> <20200623154214.GE9005@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623154214.GE9005@google.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:42:14AM -0400, Joel Fernandes wrote: > On Mon, Jun 22, 2020 at 12:07:27AM +0530, Neeraj Upadhyay wrote: > > On callback overload, we want to force quiescent state immediately, > > for the first and second fqs. Enforce the same, by including > > RCU_GP_FLAG_OVLD flag, in fqsstart check. > > > > Signed-off-by: Neeraj Upadhyay > > --- > > Reviewed-by: Joel Fernandes (Google) > > And I think needs fixes tag: > Fixes: 1fca4d12f4637 ("rcu: Expedite first two FQS scans under callback-overload conditions") Excellent, both applied, thank you! Thanx, Paul > thanks, > > - Joel > > > > kernel/rcu/tree.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > > index d0988a1..6226bfb 100644 > > --- a/kernel/rcu/tree.c > > +++ b/kernel/rcu/tree.c > > @@ -1865,7 +1865,7 @@ static void rcu_gp_fqs_loop(void) > > break; > > /* If time for quiescent-state forcing, do it. */ > > if (!time_after(rcu_state.jiffies_force_qs, jiffies) || > > - (gf & RCU_GP_FLAG_FQS)) { > > + (gf & (RCU_GP_FLAG_FQS | RCU_GP_FLAG_OVLD))) { > > trace_rcu_grace_period(rcu_state.name, rcu_state.gp_seq, > > TPS("fqsstart")); > > rcu_gp_fqs(first_gp_fqs); > > -- > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > > a Linux Foundation Collaborative Project > >