Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp115689pxk; Wed, 9 Sep 2020 00:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd6gElC3wgZonwiVq/s5lBdS0nSPp+WL1DkQu0xgiNwHuUYu5A4NbOq17KpAiEv69u4T8p X-Received: by 2002:a50:aaca:: with SMTP id r10mr2746930edc.307.1599635124468; Wed, 09 Sep 2020 00:05:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599635124; cv=pass; d=google.com; s=arc-20160816; b=yrX8LuaOFqhN0UK1a68NhtwVkFb8fM2awvb82MRHT04LryvR3bSHjtxzFXdnOiOVhV R+4+BbQsHywkKUXi6NrvP07Stf2NEsSmI0KDf1BRhNNaQwlYCPWDOd4PvdJkyL+FKiBI /0T8nfCwcRpie+5V55dD7daA+VNBEQ+ivJVKF/uGqYcbNC2Vb/WMe393K0136tuZZR6J IKpXhcZ6HYe2kSI8Y7efF02CS6iltkAj2KywcYZzvQG90V8cMpTtdZYkcz/0MuWcawXm S5wAB9iscAKBCghjz3QaO17gr5Hn4i3KfVthxvi5ycWtrV0dAIwlmtqq5q1nQG4wdnvP irJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=QFRgvR+yP81dUw2M6bkGlXt3cC97BC3YMUMIZQZ1gfg=; b=P/9skbgeqMAemFk8KrBi0nQXvnCwNOjJ8szDupuNvfYfUqwfS55mIE1fwcmF06UcKl EV/m7OiTSB9UOtAE/3BxF2CCPGqhh9gHgHPgwsZ8Etjs4fwdS2Q3dPIdo7w/2fVXiUNI ypcqg99jmPAM1PlijicUi5d//z2wthhx1KZ/5JYDMVMODQL/5xmfxemTOtFevlmOcswP IBAAyidYUzg0HZsW5pDTiXcPpDlyD2uLmXSZix77fuNXTnLQTQRpQtluYXwoX5YQ5mb3 IimIlk6cQiXYkZwypwYrjVFGxMxMyLYT9OhJKWIuc9H9/a2gCgPwrHlLlo7MNisSm1nh l/CA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=dcYxKeHK; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); 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 d8si1014130edl.399.2020.09.09.00.05.01; Wed, 09 Sep 2020 00:05:24 -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=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=dcYxKeHK; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); 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 S1727975AbgIIHEA (ORCPT + 99 others); Wed, 9 Sep 2020 03:04:00 -0400 Received: from mail-eopbgr690067.outbound.protection.outlook.com ([40.107.69.67]:57575 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727880AbgIIHDu (ORCPT ); Wed, 9 Sep 2020 03:03:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RQgwFluWc+A3SGaDWQ0+cyywz/1ZZe82Av0B4CUPQO2d6agHj3WyO30vXHiahqgkOEEIasLhdxIkmVsF8Ka5uAXcp8vuflCGMvqYX7eocSW4W7yBE1NZp9sqX1cbMMEXr0qBuuXvN0RJborH7Qk6NRmY9l3a+ybBAOvlKFRwO3KgpHNaHTO45pDTL5hmCdvHLA0iBFhE04V3Ux0bhC7KWc7NgKdGnao+cSf0S1KksA0uJkkoIEkunbsmZEo3OQVCKe4da7kom76tsVJGeLLJRrq+4Zxveya8IEz5SYS3adJ61pOlN1g1cH+ZxmYYo68AKVHAxrRYvqGUffigVpnGkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFRgvR+yP81dUw2M6bkGlXt3cC97BC3YMUMIZQZ1gfg=; b=Aly+FjPR29cDcgRztZNiKQgiQP+nu2nX2yhquMaJbseI8oTsgnZzmGMV9dYNIVg3B374E1XaHryXj9iHRMVoxBsfK1v7y4vT6e+XP+s3lTofNJ9c4xDNJK3yC7d5OxFYYsmQ9FwOtG4bTY6KHmTbCmY9bsPAUu12S4jv++/twKGq2icq+w80qozTfuHXjqfhw7JDYmd7zFKkBPeTXXaVyFiVWFHnSTSdyt5mGzzzRTT8xNW2UsuY2XzAMj59UHhUIQTry43GF/ZrCLV9fU7LYlJaVAJq52E6lpYyyVnDAg2aHISHIwaVjBLjeRzkZWMiWQcWgFgo2luZYNMjatsYSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFRgvR+yP81dUw2M6bkGlXt3cC97BC3YMUMIZQZ1gfg=; b=dcYxKeHKo8m0mNisB7EGteTR7548oqY+iK5c0sjwmA8JXqYfbX4rH+MpJeNjoGZuwoHm6gFbmOV7nAs2jnPGQQpI2wfUszk7SHWT/AyiNWoumjbkF2PYT2ZpRSRjlWo4+cF4DAZPEP2bj9jSytHIwWSkQHbuwAABdGq6esBNSJY= Received: from BYAPR11MB2632.namprd11.prod.outlook.com (2603:10b6:a02:c4::17) by BY5PR11MB3911.namprd11.prod.outlook.com (2603:10b6:a03:18d::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Wed, 9 Sep 2020 07:03:39 +0000 Received: from BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::21a8:8895:6487:5126]) by BYAPR11MB2632.namprd11.prod.outlook.com ([fe80::21a8:8895:6487:5126%6]) with mapi id 15.20.3370.016; Wed, 9 Sep 2020 07:03:39 +0000 From: "Zhang, Qiang" To: Joel Fernandes , "paulmck@kernel.org" CC: Uladzislau Rezki , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , rcu , LKML Subject: RCU: Question rcu_preempt_blocked_readers_cgp in rcu_gp_fqs_loop func Thread-Topic: RCU: Question rcu_preempt_blocked_readers_cgp in rcu_gp_fqs_loop func Thread-Index: AQHWhnNgdtT3KSvnnU6Qd/KLSreZGalf2jJU Date: Wed, 9 Sep 2020 07:03:39 +0000 Message-ID: References: <20200818210355.GM27891@paulmck-ThinkPad-P72> <20200818215511.GA2538@pc636> <20200818220245.GO27891@paulmck-ThinkPad-P72> <20200819135654.GB3875610@google.com> <20200819152159.GX27891@paulmck-ThinkPad-P72> <20200819155808.GA8817@pc636> <20200820223957.GB120898@google.com>,<20200821153328.GH2855@paulmck-ThinkPad-P72>, In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: joelfernandes.org; dkim=none (message not signed) header.d=none;joelfernandes.org; dmarc=none action=none header.from=windriver.com; x-originating-ip: [60.247.85.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1e6b244d-943e-4366-b639-08d8548e7aaf x-ms-traffictypediagnostic: BY5PR11MB3911: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WJ4hU7cEEWSe+1e/0Au1/0mL11CYH53R/3W5VGKtU0RkKBnT6pQtbwO7jpYWY9TyeFhEEvBglJBX6U3MRVY+3Qq2nigoa5q4Qtb1rtwRArEngTs51JJ+gBchm70Anr/1cTc8e7vRykuxPyUQTPHjJ3Hs6Y1i/G3u4Ex12ra7X1V2b41AJtXTrSfdqFYEDCc8/z+otYc6OcShp0Wp2uNrzq5OFMDGiO+us/8hqqUB7WzI2eN7hePuay3vdr1JvoEDemSDpVhJrl6WPYbmwqJZkVfFA0BsP5rTigCZvDxqSezeAZyQSlLN1TzCPu5tBRVsQSvk9A9DDSepTuL2uYD9WA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB2632.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(396003)(366004)(376002)(39840400004)(136003)(66946007)(316002)(2906002)(2940100002)(8676002)(5660300002)(6506007)(86362001)(8936002)(4326008)(7696005)(478600001)(52536014)(66446008)(110136005)(66556008)(54906003)(71200400001)(66476007)(26005)(186003)(64756008)(91956017)(9686003)(76116006)(55016002)(83380400001)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: 16SGaOcT9ObKvYgsIqJXg0o9PQ1MzvyZlPwHoACf3qNwSOb8k/MyFsdpX2hV8SnNKLbNByBzMc3AiTkzDySmsrx3C00YU2XEdumnD0Nq3JdhsSCEh1D1bA5T2UuAOPxQJgf2UxeiFXs+5V8bYKIJ2fnULOCdD5Ly5ZJh2Lgsz7HEPWTMm7UR2QsfYSnuhMbGZE0zHPZtYTjp35iNX1mKzgzlyVe5b4hKmWa5ITMpYJ8FtaxjBWGRRJ0MiLdTPXtuSL6Rcf8ViDrFdHNhduMwKXp35i197lSVF7BkBKkkIUnU0UngsszLDN6K1fl4JA6CHPx0++xT83loA0PmPwGs/CYr86S9vMTxdyfdH3Fnq8tolBFQ4peomOXAVl8/bviYMAiPpMwPLmMDf5hnh4MZmPSmhnMIsNo9OtW/8l541ZagQqYE+p5gWFsUES67AMtMj7IpPOaorNT4ydhAZ/dZOBG9hi7kvcF2+OmIq8za+pumvxJ3yuuhysSmeDHdHLE0xDAK/mM6thos3ws1I1MtjRPEKHXxxkoT9B7VghieprWuXG64cXgHsD4iTGmt2QaeVrWK+bJHfeM8ipQHeDUf6WFwjwgv87CX2Syk4lIl7jvghon3x0USECEGQMrng2UfKHVx79TQhp8eWiOCJz80jw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2632.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e6b244d-943e-4366-b639-08d8548e7aaf X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Sep 2020 07:03:39.1531 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nFg7EygqXjRoBv04xwdPsGUQ1YuBTy3tmHhN7DFS7aQxwyG5me9gRCbn78WJK1EynLsnqIASVSeFDLHOwW6B0yOSwSJjo+uQwnkDUjQJ2c0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3911 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-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