Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2337470pxa; Fri, 7 Aug 2020 08:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVthRiBlxsSUoEIsf6M3Xsteak+eucq8NICrHwobYIVGIiTtFCULZ50RobVdFXi7lEfIOU X-Received: by 2002:a17:906:4bc5:: with SMTP id x5mr10346511ejv.177.1596815198325; Fri, 07 Aug 2020 08:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596815198; cv=none; d=google.com; s=arc-20160816; b=O7dm6S1BtS3Nj6x4ASQbRVYR1co6V3mJDqbPuCG6y3pzicTcx6MN8qiKsWfNffoY1u +9ivm8sASgl84PJxAvLOVfS5N2S1nWORNX11TJw2QoitXAAIPIm4VSC3OW68SvUe5vuQ m7/dMK9egD9qpUMBzDux37du0cWkwmRuZqMlTTU/Fl9j94fL8rrPhR/eP3z0d4rqnX8d ri5p9QLpQP/VpFV0ZktCTgyi5Npz4Zp+d72ozXBgfinwAHY7ypBAcUm2wkghZhQSZocJ uS8YF8Tb/UQwy0zMnndmNi0ftuyCiYZ8yO3qOSY4zSYV4vRpy3TkQ4Vtc6oLM1w8GC+Z G03w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ti3fqOdIqlQ3qR8alSRUbBOgYNuMnwYJVfSRr0xptkU=; b=ImvXuO01tlyPH62oMMei6phJg3N4iMySSbugXAcwRSRicBmOhiAQlr0Khypon1A5lC EOgD3WeFlvcEZISnh9nc0RFecddmW/ZGODWmkuo+nC6hA66lp6J3GVLJOel4g5jQoRaa B6SsvaoU2YQMEFfG3YmGC9+0Im9Hz28FAm2WvjVH39mWZyX5Wj7N16C5pSW3QUj78pZN YPYCKQcIu9WzfJTcHkQt1D0UobJwyToEMQqgrc/l68/IYZWtrxVEOrmseIF0O8Z9fWLu rlxTWvc4YK4imLjiNC82Eh3dQT+bCE0N2FR2XskPOBxjL+beLB0PndaD3FJ2Y4g9IWiI C/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=LIohIIVu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si5400894ejb.303.2020.08.07.08.46.15; Fri, 07 Aug 2020 08:46:38 -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=@joelfernandes.org header.s=google header.b=LIohIIVu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbgHGPpc (ORCPT + 99 others); Fri, 7 Aug 2020 11:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgHGPpb (ORCPT ); Fri, 7 Aug 2020 11:45:31 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2199C061756 for ; Fri, 7 Aug 2020 08:45:31 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id s16so1576097qtn.7 for ; Fri, 07 Aug 2020 08:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ti3fqOdIqlQ3qR8alSRUbBOgYNuMnwYJVfSRr0xptkU=; b=LIohIIVu+q/iM/Msq4pk2cUT4wKIxHdGh0JmONVclYRwvpTXRrvjhqoMqZDRTA4whC dzFDwGiXsdH6AHZq6f9f6JoJDGZSRV5sp1Evqn2zy8rJOyVm8fEe2f/+ImtTimJype2e XFRpMXOvOZJDkLQqI5tWRKRHMOjnRni0z6eE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ti3fqOdIqlQ3qR8alSRUbBOgYNuMnwYJVfSRr0xptkU=; b=JzvWqLpFGXGlr2/emW74QUfIuB6HiRZ6yApN7bb1jcg0FUdXWhqL9JF4jl4ERq1QIx Nhx59em9YM19TPRPXSTubt4ZvbkUM+r332SQhLS0N0dsiidILRedwZF4wEOn9w/RgnAc LkoYJc6wM1YpPEfPZnNjDaluBVTQaGKgP+4yh9N7A6sV6Brn6oizJT7kgLMqDGgCVuHh Vb68/SM9+RMZ6bsHfX7mP/JzyNv0vHjJjL6y9+kwCfPeSB9h5BRUuKPW8vKDzXHgvSW5 LtD+aM3v8G29gsGWRe5EWFwQP2emUb0oYLF1RD6E+xoqgIHk8baEARsBjlGOuoIQoYM4 m6FQ== X-Gm-Message-State: AOAM531f7XeINMK3jqolFNH8CWMuEi/JDsmg9uGLe2ZZTZIpyvMZfo6X KK+t+To5vGq3iwVYhFdjwJEZig== X-Received: by 2002:ac8:349a:: with SMTP id w26mr15110226qtb.263.1596815130907; Fri, 07 Aug 2020 08:45:30 -0700 (PDT) Received: from localhost ([2620:15c:6:12:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id b23sm7874747qtp.41.2020.08.07.08.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 08:45:30 -0700 (PDT) Date: Fri, 7 Aug 2020 11:45:29 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Neeraj Upadhyay , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH 1/2] rcu/tree: Add a warning if CPU being onlined did not report QS already Message-ID: <20200807154529.GB2865655@google.com> References: <20200730030221.705255-1-joel@joelfernandes.org> <20200730162159.GZ9247@paulmck-ThinkPad-P72> <20200731014222.GA2349603@google.com> <20200731034825.GI9247@paulmck-ThinkPad-P72> <20200807153732.GA2865655@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807153732.GA2865655@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 11:37:32AM -0400, Joel Fernandes wrote: > Hi Paul, > > On Thu, Jul 30, 2020 at 08:48:25PM -0700, Paul E. McKenney wrote: > [...] > > > And I could make the comment here as: > > > /* > > > * Delete QS reporting from here, by June 2021, if the warning does not > > > * fire. Leave the warning indefinitely. Check RCU design requirements > > > * in Documentation/RCU/ about CPU hotplug requirements. > > > */ > > > > Rather than decide for our future selves, could we please just suggest > > reviewing this on June 2021? Or, given enterprise distro schedules, > > 2024. :-/ > > I am replacing it with the following, let me know if any objections, thanks: > > + * XXX: The following rcu_report_qs_rnp() is redundant. If the below > + * warning does not fire, consider replacing it with the "else" block, > + * by June 2021 or so. The rationale for this is as follows: The CPU > + * onlining path does not need to report QS for an offline CPU. Either > + * the QS should have reported during CPU offlining, or during > + * rcu_gp_init() if it detected a race with either CPU offlining or > + * task unblocking on previously offlined CPUs. To avoid deadlocks > + * related to waiting on timers or cpu hotplug locks, only those paths > + * do the QS reporting for offline CPUs. And you did mention you still want the warn-on indefinitely, so I'll document that in the comment as well. Now it looks like: /* * XXX: The following rcu_report_qs_rnp() is redundant. If the below * warning does not fire, consider replacing it with the "else" block, * by June 2021 or so (while keeping the warning). The rationale for * this is as follows: The CPU onlining path does not need to report QS * for an offline CPU. Either the QS should have reported during CPU * offlining, or during rcu_gp_init() if it detected a race with either * CPU offlining or task unblocking on a node with all of its CPUs * previously offlined. To avoid deadlocks related to waiting on * timers or cpu hotplug locks, only these paths do the QS reporting * for offline CPUs making the following reporting redundant. */ thanks, - Joel > > thanks, > > - Joel > > > > > Thanx, Paul > > > > > I will post my v3 with changes to the requirements document. > > > > > > Let me know any other comments, thanks, > > > > > > - Joel > > >