Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2000704lfo; Sat, 28 May 2022 13:21:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTKgUY0KHcItPjVSFubRSJvyUN2dLrV65RbjVf0uaOc11WbUBVGqMMHHVQD+JW/CyJ9y+S X-Received: by 2002:a17:902:8303:b0:15f:86f:70a with SMTP id bd3-20020a170902830300b0015f086f070amr50391381plb.5.1653769292772; Sat, 28 May 2022 13:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769292; cv=none; d=google.com; s=arc-20160816; b=EoPZSENd6RG31U5CuVXKxFZoA8uqPCIncgdE32ONGdWTnLJrIQY2Ca8KvYTf6ZICN/ yYrGdpGq7dtwGIrR50yaEwdDWQzk9wTMtftzvIRRNRPyKPp0jZcmx7JM1imtNrVYKfet 1Tl0AuX6P7uGkrh7uZ6+n7kAEw/7CQKpjiog+EJtYeVLa8w05w7t1RSnwKEJQz/AY72T 7rlR0lx4MUAibRsjKO6I6oXdY+iW63mMR4BA+rL5qiMfoTauzsO41wFMS72ChFO5N943 HE9yBAIrapJeFP4vH6dhv2CL2Nn+ydZnLBOXo2C020NuyO8vTrqgE4zaAz5PvYMSTgRu GOGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8KfmVzIczK9EJUwSqscyIejyygv1SZsn7/Z+4Jtqcq4=; b=TFjk6Bmnu6uXXL+DBVUNLwddOIDDRfRQDqndb3iq96NZ+KIHnKfdwxtkX6e8w2yfIG yTLWeHdyBLZ/k11HozBy/Mqy10OZrjcuJEOnGsD2QSPUDJ627fZcieJ+wK0EN5p1eTlc AzyOYnjWKjP7+YD9hLEfxvl40y+QEObwrgVDJZa16UsdDi+IsIiji/8HM53xPdSqVl8M rLUMYjoWoDHTv3YaeSQuZ6NteAEYGAiKh/CebEY0Sv/Wo19nEOPHJCN+NNx7sfp3ekH6 ldSfdCgHbAXFBwFLc3G+moP8dKNfHTUqk/g4uhC/LONgpai6sNgWK6hhIpUiPWI8fu7Y FPKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i2DTwlEM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b10-20020a65668a000000b003a6d2c0b6f3si10553752pgw.573.2022.05.28.13.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:21:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i2DTwlEM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CEB76179C0E; Sat, 28 May 2022 12:33:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354247AbiE0RKL (ORCPT + 99 others); Fri, 27 May 2022 13:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350770AbiE0RKD (ORCPT ); Fri, 27 May 2022 13:10:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD6413FD52; Fri, 27 May 2022 10:10:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 74A9C61E15; Fri, 27 May 2022 17:10:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5CDEC385A9; Fri, 27 May 2022 17:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653671401; bh=1hGnT3uuFBFv2HsR/5cfZQxn6XGgLam5DB8waL5477Y=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=i2DTwlEML0hGS/pT9FCGGjUt97z18++fp5TlXsGf46lW8lQ3X+thxXAbhAF/lou/v ftHs1Qfi7vCIBZLz1qW1/oy9nKlptGql150ChSd5+vGZoLjy3sID02uqYkaO06raLW fboYbVP7xqft1715EMB5Afl2nin9DnQuO6oowTH+ENvO6PYOu7mKTYZYAPnLDO4aSm rzaPtL5y07NGbYmNmq5GegKxkplFnaGFhVVq6zMlGsAnL36/KQUU7FUCMbKx0dQG/l gXRd+wegW3Iuy3jzkINHlGFfLYv2viT9qtUknWisi03woIynjjej4VBQHqnkNz21r4 q8Ja+QjJFvHgg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 441715C017C; Fri, 27 May 2022 10:10:01 -0700 (PDT) Date: Fri, 27 May 2022 10:10:01 -0700 From: "Paul E. McKenney" To: Zqiang Cc: frederic@kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu: Cleanup RCU urgency state for offline CPU Message-ID: <20220527171001.GT1790663@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220526015512.2218046-1-qiang1.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526015512.2218046-1-qiang1.zhang@intel.com> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 26, 2022 at 09:55:12AM +0800, Zqiang wrote: > When an RCU grace period starts and at this time the CPU is in > the process of going offline, if the RCU gp-fqs occurs during the > time period when the CPU has passed the stop-machine but has not > yet entered the idle loop, and this CPU have not report quiescent > state yet, its urgent flags maybe is set, for example due to cbovld > is true, but this CPUs rcu urgent flags is not cleanup in rcu_report_dead() > when report qs. however for CPU that have been report qs, its rcu > urgent flags should cleanup, so add rcu_disable_urgency_upon_qs() > in rcu_report_dead() when CPU report qs. > > Signed-off-by: Zqiang Good catch, thank you! I have queued this on -rcu, and it will become visible on kernel.org on my next rebase. Assuming good test results and no objections from reviews, I will submit this not to the current merge window, but to the next merge window (v5.20). Thanx, Paul