Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2167819rda; Tue, 24 Oct 2023 14:46:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHf7OetoXMzcySSxVnpryXVZoI1uaXkHX53BoEHEjxoTjjEULVNcpTS6TK3wujb+s+pJKYZ X-Received: by 2002:a05:6a20:734f:b0:161:2389:e34b with SMTP id v15-20020a056a20734f00b001612389e34bmr4407239pzc.13.1698184001131; Tue, 24 Oct 2023 14:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698184001; cv=none; d=google.com; s=arc-20160816; b=oVV8c0mBmcZMZ509HSxPvpdadJ/O9W0Ob29V2zBgBoskb9o4iOxik8919cnSbPBCDm hKtGuEuhSglHthim/QljmxUTltfGWl6/ftIsNbXT9tdezv+2V8/WgxlZ5zdhf6DV5TVH IWwBT/mR6dsGVCzhIv/RtLRIjwKlbCmfwg4AhToEih0zAMeJjdJfL1+kYDicnTmWdRY6 v8cJP1pHfZgEzxzpXUvZYJkIXBECuNePTq3P4EhKTKQdGU+gYosqRX3C7B3JJsmvFHvo OgMaAHKoRP9VevMZygX+xyyKZ9EO6fajM/Nc3z4v7Oc5E6VuM/Mj338hsHvDm1WG+Twa DbNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UN61Ba0X098FOlrhk2iQxezlwmkPQBoqNFfsY1emYRM=; fh=vRLsh+mlJ/3erNsj9qJLuZWu4oX6irbICpSWFnY9W1o=; b=fRPsaITULVzdt6zE5VyOpyCLl54Urrmpj53ebcljrx6s141VGkCVX5XqrxGsyr9U+K 6g0AOXBp1Ags1ct+7HvNE+Rtv+BwTRTua8aOENSTheGF2Rxnc+Am4ju1o0Uipn4usw1k 86JaEYOr1TFqLonaGHE+2aseJPD47ZpGXVwypowruiZ/vYXN/anvf6vIy1RVuunEUPWg Mld5gN4TZCU0eaXhddg40TKA1x+YAhWIY66ELXJu46hZoorNyYcTh/jAPAQnM6faOG21 sYn7Xt0ErDD+HecaOvNpJQeFOrgVmXhg5QfMZbGIEaMa2wwu+r8jMhvNhlx2Y4B8esa/ XMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tLccx/3E"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 19-20020a631753000000b005b3bcd9d7f8si8716747pgx.808.2023.10.24.14.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 14:46:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tLccx/3E"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 60AE8802F301; Tue, 24 Oct 2023 14:46:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344405AbjJXVqh (ORCPT + 99 others); Tue, 24 Oct 2023 17:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344380AbjJXVqg (ORCPT ); Tue, 24 Oct 2023 17:46:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DF2FE8; Tue, 24 Oct 2023 14:46:34 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F533C433C8; Tue, 24 Oct 2023 21:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698183994; bh=yHSm2YM/bMQkAnbmpHj+BQijT/wk2j7ErJc48tU8SPo=; h=From:To:Cc:Subject:Date:From; b=tLccx/3EY+Moi4YGUpshCDMQO45hBfs9xgyAkvQGsPrridNrqRMnPfmAUc3YBChZg LjAwkkG3W+kBMV0YDLKC/UViCQN1vlDCWRRwSay+Vjsq5RdhXf5EbLCVCwJGJFWALq tkOt17wt3Nns9/Lfgbf2oq1gOin78wctBTNVGOpsfjOZmMCH5C/0nghz36lnUjnHeq HsrXV/2C6PACjRx7U4UFtTtGL0pJsT2AOpl/F88C0Iz+2Vbz039Doh6oYaSNfXVYJD B1K+2uDwA8ELfBnfCWd0sJLpRS30uNOm3J7k97VrRn5N4Ho/JY0uszNFqxkaOC1ovZ p4kl/Ja14CDPQ== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , Neeraj Upadhyay , "Paul E . McKenney" , Steven Rostedt , Uladzislau Rezki , Zqiang , rcu , "Liam R . Howlett" , Peter Zijlstra Subject: [PATCH 0/4] rcu: Fix PF_IDLE related issues v2 Date: Tue, 24 Oct 2023 23:46:21 +0200 Message-ID: <20231024214625.6483-1-frederic@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 14:46:40 -0700 (PDT) The modification of PF_IDLE semantics lately to fix a bug in rcutiny eventually introduced new bugs in RCU-tasks. In this v2, this series propose to fix these issues without reverting: cff9b2332ab7 ("kernel/sched: Modify initial boot task idle setup") Frederic Weisbecker (4): rcu: Introduce rcu_cpu_online() rcu/tasks: Handle new PF_IDLE semantics rcu/tasks-trace: Handle new PF_IDLE semantics sched: Exclude CPU boot code from PF_IDLE area include/linux/sched.h | 2 +- kernel/cpu.c | 4 ++++ kernel/rcu/rcu.h | 2 ++ kernel/rcu/tasks.h | 33 ++++++++++++++++++++++++++++++--- kernel/rcu/tree.c | 7 +++++++ kernel/sched/idle.c | 1 - 6 files changed, 44 insertions(+), 5 deletions(-) -- 2.41.0