From nobody Sun Nov 24 06:07:51 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8ACE20C335 for ; Wed, 6 Nov 2024 20:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924346; cv=fail; b=P/SJkBliayY4xDuE2jbNMHJ8Dz98F+0lp+7ETFYzsDT+hM2udSj/9plAsOesrAz0OKftpUWW/HSHFwVkpP6Ysuu54zkQ3vPVfmu9+awptCAQSRzqeYpCX4FKoUYkwAyvhYkkPZSensKQU+AuYwVpTCJyy5mjTRo67QLuWPifqeQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924346; c=relaxed/simple; bh=XkDLi5ol59gRERPDVk3D5C+wdBJEZPFArCBZTwoj2Os=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=q/K8jV9l7MpzXBQN+m4081ypf1buyNAYcDGnCqwXDeGj5MljGVuIsLV1zGXt+wHyhfWkYCoWCjarpLstz605CvVzmbS4/kA/UO+HDbybcrBLSVgSEzRZj9/rnaZv5irmMCfAr5TpYPkJCXJl8P/jwa1XAh9OgbLZTdIwXIwpXB0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=eamvuqS0; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=hkvXHPJO; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="eamvuqS0"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="hkvXHPJO" Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXXJv005483; Wed, 6 Nov 2024 20:18:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b= eamvuqS0KMJvebkY8wgHdQYP0QDJDTXmnbX6Hb7dw9EGGT5icafwrFAifksYbjHj 2B4PnqFdRrXmRX2mzKzygzzf6H/afi0z0FYLcEXoHCwSAZFb7AQU72D9nJeCwIf4 EcnX3sYO6GdRVHYqbFuDMbFacB4bF81JmZOnH99Ml+7Rxj96HTIsB3Feokcftc6E pdcF2O5lo9BmIi2CjEwdadXydoju3Q3QIJToHqWlaXBaIr56glM/uvO11HrL20uq HrPompfRFZ4uX0NrUelg+i8FzyvMPryAd1khVLmK7NhwDsIctUleTntW76rW8XaW uOGER2ggEiHzWOqy8Orv2g== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nagc91cu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:40 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JYkii009712; Wed, 6 Nov 2024 20:18:39 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2046.outbound.protection.outlook.com [104.47.58.46]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42nahfc0pq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W4bsP90G8aucIAaOx7ho/+fVc84G7iB9gZMFc3Bp3lZg453M8TJwx6E2DQxAo0H55MaOHAwjpiLw+23q/pGN4/xEtWDxqXx6eC3mZVKwOSkJ0y0M0pzeJfoloCzWrRW2u9XAWB5YJ9dwuoj9AoF0dYnaciGQ97GWQUtYgcG2xaDaEAxxplgXPEXt7BCAkE+VFvbvr3GkpMMxof6DqT/yqVX7jdNuWl1FJvyEPTVgMzwSiSid+vVCnsrWkX/hvGocbsA9QkywbXvy9o7+ULfYSUO45m9Ixs1GfnUC/tIIkU3Ep9HHcm1OIkskyggSpVuDYOlU+TfmwlMZUwIKXkotyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b=u4xo7z5evrkrYvmyUXypal+lPlv/uq44abcUlCRoTwwyTjiOHktDPI9YuVj6JUx3wbDIbuCR/QkTsvQLvKpZTsxSWkgrhi2WqFqKxdsOT4wS0FDHwjLtFQ9XlAvWAJ5zhOlfhStisLeFeZxL5/X1VkbWB96em1vBMUxO06hrPVCxkq1ll1s99cXoaTT4ZoqxCIjJxUPdiUC2uZKOC43ae1rx/TSPc7b+WKuBs5O004CecRkuPq7CEZ8Ez5VFgPr19+V82W/y5jY9ifNvWacoWfPscninfmbq8LoB5edtB/ARj73EKXN1jkrZLMwzMYrzF3UNsgoVOUFbGgzRH8ijSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DePIVHClCjpAOXGADN2fMS/sfjzxG63DBLHmmkjwoGA=; b=hkvXHPJOxXak5xZkpQz48wketohFPZooIvMBQssYosT343Wg0nLb2nRj5KEFOHEDN0+/S97rs8quCbI0FM+F9ItXZQ1c0c3PclNjYI6NDtwCquAuDOMllTkO2FAqAAzmS5uYEDyrG72yXmPo9OK9gmIYDI/i0U+OOR5myxhgj7E= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:04 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:04 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com Subject: [PATCH v2 1/6] rcu: fix header guard for rcu_all_qs() Date: Wed, 6 Nov 2024 12:17:53 -0800 Message-Id: <20241106201758.428310-2-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: BN9P222CA0012.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::17) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: 4d892a7b-d2c3-44a5-1e0e-08dcfea01ec3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?U6ObcAwoBhL34ZhWiuV/kUd/O7MoVa+N4lJgzvwwQlsNdjHxSgXgQiRHnzCg?= =?us-ascii?Q?IH/gnSkX/AxO1dX0cT74q0OwopSH0LEtESmJgaIBDToOx8LXxFTIVNl11185?= =?us-ascii?Q?mFZnKXrx60EEAPZjw9zTmXL0PGMt6fY31yEsd0Cz+llFi9CCKiN0H7ua66pc?= =?us-ascii?Q?MpaRYqZtzMeupASllXORZswgduDFNWZBLUci5t1R4XaZr9Ijf0xwzL1p6v3f?= =?us-ascii?Q?Tqz4M/NbqbHOSRQ2+SV4vlkro0zLoU0wcNhZWBY9m8vE2tmhtz9zB+O9ndvr?= =?us-ascii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/jGmkiS0ggfPgNWxKkXpPnue?= =?us-ascii?Q?1rjrHtMmK3T/p3K3pxOKV0fNUCw6zcrKUxzhvwcaCtqED5FR9d+x14f1NaYI?= =?us-ascii?Q?LMEKy+qY9UiRJ8D21/8j/ViN+YT5As1pZdpsV/4jqqL7MJsY0696E132ZQH7?= =?us-ascii?Q?6uJESj2JP2vOsSsmYX06lLDK?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DdH2ulY0Dgh6yHC4ZT84sDMgK7Wpea4uwC1p/yepZwv7DlunxZGqWHd/wwLU?= =?us-ascii?Q?DfQsq58f05dI1FOw9mwoBSdG0vieN1Y/xEPVwG1hL/RiWEdf0bIZwanS2YbR?= =?us-ascii?Q?HDUkC0tgjiWV52oNKhmzd9Qn6b38UZAC2uHjimPRNuKN9dNOz7tPaPCdIY1R?= =?us-ascii?Q?MKunIeJa7zTO0rx8rCGhywYHvMu/LG3sXFmhmoZ/8EvEIyLcOIASDnIK0Fyq?= =?us-ascii?Q?0R73qX+P9np92Jx1fe9fjIneke0Ki67r+M15DnDTQNyQ/O3FRWH/mMLXSdY/?= =?us-ascii?Q?Ex4ciJCr+C869H6ru9thUMmXQIS4ZTqujDJrwLenrFV7UEDd894adaSNUy8u?= =?us-ascii?Q?pQ9fzR5PPSDd5Uoy0Vvc2yI+i17Tm+G5nbN5CqDwwAX6M0j8POEjP6EFDZsj?= =?us-ascii?Q?70u9UjE4cuKKviHQU+APn46MAs1jIorB2QcjAXgMY3o/JNv/2g13GPPWUMzi?= =?us-ascii?Q?wCm90ei7MguJcJj3yYdfldGy+UnAPhyBBf49IMoB2yqHYRD1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nGq60qb1/F9kGCyGa1bJXLv2ldbr3+C+7uIeuvU?= =?us-ascii?Q?+KXW6Cw3O80TJSJGHSJOW5zd25yVCxdsgOjanmQVzLuPLAofxn+hMu49wAb3?= =?us-ascii?Q?6wFl3pi4aVqsyb32GDQkWdA43icblt6NKspiKLxOkmrQL+8xOgTwz/Hzf6H/?= =?us-ascii?Q?zdZGyt4OVYgKaIzfeK6x04UI9ZtfKnkpG7EVCwsMB+NOzFhuqeOuQEZimujg?= =?us-ascii?Q?5Q=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 361q49g2hvZEYTHWsAlvcbsZU2yIG/ia2/f7EWWO8/4socuciYMMSMnBt0KWKW6BEBPmuHYjqTekOgZsznkJxowLXsZy6RbsY+JcXnIle23ZFzkF+SbphfUjvpH0iShR+qW6m6LC02r96Nrq7KTnbGrl/7pXOdN3r/Oini9+M8PSW7dq4nyGaSijZLxxwieetqRt43HN9RB+g6aogtsvAbJ2Umu7FZ3KnB/RjDcJrMrq9S4lmddlF6jh9AhIeZhwCWuppTA8sPEMSea01n2c13Qg8ZGVyiNjykIfvOiGQVxCOWlpazMaE8lrFPGmnpeAwV8R8VPdXSfaSIgHxbpmwarwWyqUEv2dZo+EdicfDA0M0e0an2TyhDZWv1j4I8HWTu/2/Q8wv/aw+qclkt0RthHbTI5i0OvBCsjmWFj82ZzGt5lFfGlV5VV8UG0bq9+hNCCDOsoug/fa2CFsfDncCjFCPDK+qL3dJ6/M+9EDf4/qYQfupUln6ge36c0MeIL+xFmc77JtRpuwz1+VMB+OqvPRP11eA43Tvfw8y8N1vqJBJ65++m6Mdgzi0HxBUlsT6Re0VBfqXwSYtZ4DPQrLCLqq4Hw2Pg3kFRXcECHCz2g= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d892a7b-d2c3-44a5-1e0e-08dcfea01ec3 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:04.5308 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: owrrWBDEdhDACxg2AzEVvdLNLSJ4cnCvHwn3Ax8n4RZbzhkptVYV+GCaTjHqKg1/T6kCNgBRKDoAbEbage5syfth5UA7UpfD/iBAyzgFY9A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-ORIG-GUID: 2mgRcgAlhywpqozRN0ydBvmb3_lj6aJW X-Proofpoint-GUID: 2mgRcgAlhywpqozRN0ydBvmb3_lj6aJW Content-Type: text/plain; charset="utf-8" rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=3Dy does not imply CONFIG_PREEMPT_RCU=3Dy. Decouple the two. Cc: Paul E. McKenney Signed-off-by: Ankur Arora Reviewed-by: Frederic Weisbecker Reviewed-by: Sebastian Andrzej Siewior --- include/linux/rcutree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index 90a684f94776..ae8b5cb475a3 100644 --- a/include/linux/rcutree.h +++ b/include/linux/rcutree.h @@ -104,7 +104,7 @@ extern int rcu_scheduler_active; void rcu_end_inkernel_boot(void); bool rcu_inkernel_boot_has_ended(void); bool rcu_is_watching(void); -#ifndef CONFIG_PREEMPTION +#ifndef CONFIG_PREEMPT_RCU void rcu_all_qs(void); #endif =20 --=20 2.43.5 From nobody Sun Nov 24 06:07:51 2024 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C584209F2B for ; Wed, 6 Nov 2024 20:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924335; cv=fail; b=i1gmPC9XPZZ+TjvF42r7FwXpKpcVkKQ1TLph7th3rKSKWHc19CQh7b2KHbbEd2e7UAX3wn/0jx6q5XLZSV5Nwh7nIh6vdAlJEiReJc3IlJJfansaG9P4HMyvsrKQq1zBod43138N3CH3UkF0iNax9m0bQ3OA9v1OL7HOkmmVJA4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924335; c=relaxed/simple; bh=9SOHCv0u4pOuU5AHupOIxgUXyU+ccCT//15dgsLHq2Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=OYOB9UrH0aVppg+udXGqOsISCOvELXKhH9vfQoRVKiVp6JULHcx3jEzKMNZpu1TspqveoQxECXLJlP5BtxdqF8GdcXGzHrt4xz/Cd8l4Xdo+rHXQhZoI0VYUTNqdbqMZbcaEEipnFWWh41ERU/N5e+lARbqUP0GZHkXb6chYfeI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=bfSaA4jl; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=cjyE9hMN; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="bfSaA4jl"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="cjyE9hMN" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXjcn001733; Wed, 6 Nov 2024 20:18:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=b23Onze0TVFA5HAgCxmgHIRwjOBYAJ8/mRJINHkdRl0=; b= bfSaA4jlgMC7Ms3Ml6XwguxGgoH2imAlpCLmUf0VCemEcBcgXE2/5pa0yhvoSfBd SnxSZxjRGriIGdEdDHwKTrjz5C1wlxO1cM1NrpGCK67HZUj9psV7uFRORWhwTxcH JRhIAPNj7gQ0akrx+1s3pLX+A0RHQ3Z3PbnDwYRMpaj+QlkZgthnPqV/kNbdQXHT p9WPcgJqqhkS8MWTPD4g6jFINFOax+BaqtXl/F0Sx8mYvFQ6VJ3Wn7LEUNC4iq/T 9zJ7nnT1eKpGjPyUQrPbbIjKa40Qne6cMZ42wIjc5WNVMLFJQ/H0k/Oj8NdCfQjf zFFOlRTnxYK/gjWcNUmABA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42ncmt904e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:30 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6ItHS3008469; Wed, 6 Nov 2024 20:18:29 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2176.outbound.protection.outlook.com [104.47.55.176]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 42nah91n0d-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=c2lfSACxuhpz6MmakqmezLeuOEUJ155mYUZ/kDYrew7tkkyFH8vOy3uCK4FrSI1SsILWkNvuSPEH/sVygyFvtFVK09F/BuK1LYtOm3TQciJ5FSvjjLh9OBAVvpONqGMV4GYkkQEGlZ6PvEEntiLkUdjiPGB0MlNE7mNB3L3GZvxcvX5V4KspVco6XEbm+JAfpzxp+suVfaAgml0y9JwtUpi02sgUe2tnNdTmfcH80NZ2Nd4QloMctnkzn4U6abk89+EzKZ3QhBPSiqLlzD63TwcwSAjw9gD5yBvG/BIng0e0Lh304SHXcAO+39f50Lo1Gg31qSXjWd61xLeGoYlXhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b23Onze0TVFA5HAgCxmgHIRwjOBYAJ8/mRJINHkdRl0=; b=HKJwbwDAYc+y4STqmhcJVZZ5v+3x4x8rhVIbKWsq0z2Bp0PgTfImPmXLGy/aLgvVk9WTyA+pc5O0TEA+I4EG+1gfkZPCv4+LRZMTptCYJAG9ZVQQhiJtGgQKR2KUFmOiG2lXt84d2AxDt4mMStAXKHd0e52nawCHKns9m0BNknzHWHl1Zjy4gTPrhIECsHsj/jdhcqY7+whSKGusgGRnNuVwkjnPV/ulZFDmc9c+9NjePuOuO5xxb14e4rFcWJqjSrVT5QvpMX+8mLfBkHg6m8Afk4Qpos2VdEnUxGKwfCm9DwN+v87Z/CBhHPp0oFEWntT9w/NH5SmDifbVVyf/Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b23Onze0TVFA5HAgCxmgHIRwjOBYAJ8/mRJINHkdRl0=; b=cjyE9hMNBQqQgoCf7PQ2aM2u3D9CwTbx7/8oye5CBMVdCkk4iO7zlHrVeZa0bqo7FLDkmEk/W9tSXQMHPb7Fg0lna+/d3hCbhiPObOBUudnHoAC/Nyt3m9Ut1da7x+j/fGnPzIMf/+Dkz6BOQcQlag88Ell3cDCb9fV/BI8/Md0= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:08 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:08 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com Subject: [PATCH v2 2/6] rcu: rename PREEMPT_AUTO to PREEMPT_LAZY Date: Wed, 6 Nov 2024 12:17:54 -0800 Message-Id: <20241106201758.428310-3-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: BL1P223CA0014.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::19) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: f840e65e-a4b3-4b45-917a-08dcfea020d7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Io88v4Fc9h4OdOKsWQaT2SLIfDph0ZVGeSTIiPkCoQAYo3ZU5SrzXsqAtOua?= =?us-ascii?Q?74SHei8u5qnQQuWUfq1jQuytve+EkNlF8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T2dmC+6MojcGWvjRLU3T3GTmbSSvmW3lPikNitWn8FIGpyvOyfy9iNLZBpP?= =?us-ascii?Q?VjDxTrk6QcWeATpAu/nX/ZVH5KL5wo0nGot3xoldCHI404sTmtYaP8uIR/Nj?= =?us-ascii?Q?XR06ua4+6R77YeC+QvHkoFLSncXoIj2lvXyzevGNn09O83ZY0gEKwZXSYY9P?= =?us-ascii?Q?L14E9+6n7MlmIXkDfxkRKO1E08++EeF2VuhjngwJkjQhOGGBTBt8Lgky+ZiK?= =?us-ascii?Q?nWv+lN6DpUq7CEwjSdxu6rela31BsZ9Ytqsds42WESiZgIk0xm+6ZwHOOcob?= =?us-ascii?Q?jTtXRvcW/oYSusQTaAzWRS11bI/BNUtwkypKeJSeBxjEuq+oKCrZeDO5jOql?= =?us-ascii?Q?w+SDLIc/mlyTB12NzBWHL3az?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?IjZ6ImuPAcXFMMnDWy8tA9f2ddw63zSpO7+HiCQe1xli6nthX40C7scZPaE4?= =?us-ascii?Q?K2chutGTZc9HA5vRzjPakkIYqOIdSBBF5i35EUOpBg7sLNxezXx54R/2u3rC?= =?us-ascii?Q?QX2JMWQ9FguaYdMpHNFS8mykCJdpsTrknG46SA2eAT1fpGAjRUtgShmYFyEA?= =?us-ascii?Q?dbZD6MVPgYh03UXovwl4PozEdufvh4OfvSt4kLILihbdqe1oq/yakj4iOhtM?= =?us-ascii?Q?8C9qMBnD63Ptt3odUELgO9EAf4tYkUtrF9Sdc5cVAO/wTfpB4g0O3Syuneko?= =?us-ascii?Q?2QtSt5RoMb/wF0zt/Pm1xo6fdO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nGPuDlm74Jf97Xx7ncI8czp3LZG2qHQuQl4+F8M3pHubugO9Ocsl4Ln3INhp9MNFoZmMkDFxSh6ugMyzMS81B3OJ2cMzimdt4gZtWXiz0AMcDO6SlGEWB6tJ5HNTTTn7pIQc1Z5MfTp06egbzZu3c8oU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f840e65e-a4b3-4b45-917a-08dcfea020d7 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:08.0945 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uP6Ui0LowfxnYtagJ1beT84Vw7oaPVR3f/zOorIjGHqgFksxFQWu7gtfbJZAFcWzHKlODGvchA3B00pxyQMj7pAxelaH3Q7/wROlFhbBBK4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-GUID: qjwR09DyXRiIl79IKzC0JIVmmy-Pf1Lj X-Proofpoint-ORIG-GUID: qjwR09DyXRiIl79IKzC0JIVmmy-Pf1Lj Content-Type: text/plain; charset="utf-8" Replace mentions of PREEMPT_AUTO with PREEMPT_LAZY. Also, since PREMPT_LAZY implies PREEMPTION, we can just reduce the TASKS_RCU selection criteria from: NEED_TASKS_RCU && (PREEMPTION || PREEMPT_AUTO) to: NEED_TASKS_RCU && PREEMPTION CC: Paul E. McKenney Signed-off-by: Ankur Arora Reviewed-by: Frederic Weisbecker Reviewed-by: Sebastian Andrzej Siewior --- include/linux/srcutiny.h | 2 +- kernel/rcu/Kconfig | 2 +- kernel/rcu/srcutiny.c | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/srcutiny.h b/include/linux/srcutiny.h index 4d96bbdb45f0..1635c5e2662f 100644 --- a/include/linux/srcutiny.h +++ b/include/linux/srcutiny.h @@ -64,7 +64,7 @@ static inline int __srcu_read_lock(struct srcu_struct *ss= p) { int idx; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY idx =3D ((READ_ONCE(ssp->srcu_idx) + 1) & 0x2) >> 1; WRITE_ONCE(ssp->srcu_lock_nesting[idx], READ_ONCE(ssp->srcu_lock_nesting[= idx]) + 1); preempt_enable(); diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index 3e079de0f5b4..5a7ff5e1cdcb 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -91,7 +91,7 @@ config NEED_TASKS_RCU =20 config TASKS_RCU bool - default NEED_TASKS_RCU && (PREEMPTION || PREEMPT_AUTO) + default NEED_TASKS_RCU && PREEMPTION select IRQ_WORK =20 config FORCE_TASKS_RUDE_RCU diff --git a/kernel/rcu/srcutiny.c b/kernel/rcu/srcutiny.c index 549c03336ee9..8a662d911abd 100644 --- a/kernel/rcu/srcutiny.c +++ b/kernel/rcu/srcutiny.c @@ -98,7 +98,7 @@ void __srcu_read_unlock(struct srcu_struct *ssp, int idx) { int newval; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY newval =3D READ_ONCE(ssp->srcu_lock_nesting[idx]) - 1; WRITE_ONCE(ssp->srcu_lock_nesting[idx], newval); preempt_enable(); @@ -120,7 +120,7 @@ void srcu_drive_gp(struct work_struct *wp) struct srcu_struct *ssp; =20 ssp =3D container_of(wp, struct srcu_struct, srcu_work); - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY if (ssp->srcu_gp_running || ULONG_CMP_GE(ssp->srcu_idx, READ_ONCE(ssp->sr= cu_idx_max))) { return; /* Already running or nothing to do. */ preempt_enable(); @@ -138,7 +138,7 @@ void srcu_drive_gp(struct work_struct *wp) WRITE_ONCE(ssp->srcu_gp_waiting, true); /* srcu_read_unlock() wakes! */ preempt_enable(); swait_event_exclusive(ssp->srcu_wq, !READ_ONCE(ssp->srcu_lock_nesting[idx= ])); - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY WRITE_ONCE(ssp->srcu_gp_waiting, false); /* srcu_read_unlock() cheap. */ WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); preempt_enable(); @@ -159,7 +159,7 @@ void srcu_drive_gp(struct work_struct *wp) * at interrupt level, but the ->srcu_gp_running checks will * straighten that out. */ - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY WRITE_ONCE(ssp->srcu_gp_running, false); idx =3D ULONG_CMP_LT(ssp->srcu_idx, READ_ONCE(ssp->srcu_idx_max)); preempt_enable(); @@ -172,7 +172,7 @@ static void srcu_gp_start_if_needed(struct srcu_struct = *ssp) { unsigned long cookie; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY cookie =3D get_state_synchronize_srcu(ssp); if (ULONG_CMP_GE(READ_ONCE(ssp->srcu_idx_max), cookie)) { preempt_enable(); @@ -199,7 +199,7 @@ void call_srcu(struct srcu_struct *ssp, struct rcu_head= *rhp, =20 rhp->func =3D func; rhp->next =3D NULL; - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY local_irq_save(flags); *ssp->srcu_cb_tail =3D rhp; ssp->srcu_cb_tail =3D &rhp->next; @@ -261,7 +261,7 @@ unsigned long start_poll_synchronize_srcu(struct srcu_s= truct *ssp) { unsigned long ret; =20 - preempt_disable(); // Needed for PREEMPT_AUTO + preempt_disable(); // Needed for PREEMPT_LAZY ret =3D get_state_synchronize_srcu(ssp); srcu_gp_start_if_needed(ssp); preempt_enable(); --=20 2.43.5 From nobody Sun Nov 24 06:07:51 2024 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0DC020969B for ; Wed, 6 Nov 2024 20:18:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924334; cv=fail; b=em35by6xIakEthSBCq0W6kLU6Doibmnogk70Z7XbPYxCEhmlJWGdbAyK+jH8uikYcL/woRhdEWYOweZxGOB2p/HmGwYASiIzhelryBsWbdkF5pVKjo+DSUZw81aJwCeVRapgtJzKfBtXo8sT+Dd1pAGaRnuIdBYyrloB9DYkvD8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924334; c=relaxed/simple; bh=kAUrxgMI94ff+FiTLK2B9inQv8CaaHs3HrhOI3IAdKk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=O293Tj4mYv4+J6MCq+F0DzCuO3PACLvGqh19jAoGDwnuHZ/TlBedPAdZGl1BqxcH4WpmvaePfAxnf2felTcDengD3bMiSsCG5NWm5TlONWVc515JMYesNkWmWekriOtvwa/6D0V9a74pmMKovKb0u4iR0ckQEUg2ln3wXPWz0ls= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Z09zVmcc; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=hZ0+aIDX; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Z09zVmcc"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="hZ0+aIDX" Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXYOX017347; Wed, 6 Nov 2024 20:18:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=mEUT5widYnsM8jGiVBHDB6HffutMnzzql0eQU6JxxIE=; b= Z09zVmcceBCvOeH3Fj95k0GIAwqB72WUzQJl3foTWxUGXh7puP2XZzmr4HEKG+tw Rk6i78acZ3s/pkxfZJ7JhBuBDR/eezWel5Dl6YaifmSy7T4sRb6VqblB9+Dq570d aBGlnJ09x6tpjNhQUpjZLoaRTL6nBXYWU1v8sXDICtV+Sr1aw179VzVZyX88iN42 hmhvO6yFP56Db2WuN2NY1x7K33B9ucVjdzlJ8P1Ha1TEs/oj7KDQ7bpVaT4LAtNX ylFA0qYvRuJpXcXVguWRDHyLd6jED6lyprCvpVlF17QbUxo/n079x3cq44cV4+OI IynNpDFxNA2YfMEKx9dbrg== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nap012jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:31 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6ItHS4008469; Wed, 6 Nov 2024 20:18:30 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2176.outbound.protection.outlook.com [104.47.55.176]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 42nah91n0d-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tpb1e6n2yb7VW7ntYpt9GztEfpkO8DDSMQmzjFp8RqJzY1WZRjfe74dFhxwhRm9hcoqX77et9GOR6ozZ0qQrce4eA5KyW0ESWfg2m4DXg+DBJLMbNA5SiCWOTF//djsL1wz4Ht3M9DWF9AS0I+5MYuWQ2iX32QurpX7iN7GRJy9ocAHytlyXjWanlToFYB8VOo3MDnpYVTTcDZGZXxfs2ZquQmEXbZNfLlvNHYTstqGk2x71CLp1nfa5uZLgTHACyve1RHFI2BNsACXOUK/uFhBDncgp/Qpvnkq0Loug1zFAPkOLPyqNuxhkI6tfBeYQxRUQzx8T8gFcvGF6HuGoFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mEUT5widYnsM8jGiVBHDB6HffutMnzzql0eQU6JxxIE=; b=aMvX4ZD9TSZa0FYBzyvKaCm2Pxgl1ant2jj7WRQy4oQkGilCkRu1o7Jp6cadPupYpqRO4PNVjYyMWC2dd+HtUNIVmywt034PlXmcc7ABbfv5IGz4fnCIAYU/NTs8fX9qM4GWwT64M1SBHuc6fwWnE0jRH7bmBbXIrptH+4hDr8EMfNW8Buqh+gHgYHRhIu1u6MYiP+IgPl2mTl4INdvYk/wCgRhas17dfOwIf5V3ogrTfzmijhOdZr0JV+U2EC600rE3xv7pXpD8C9CLoMoSIvyjFbuvovXhAL4rCYqlvm2wIdZYFLYYRljIdOR4kuzff/HXYTsdIZy3ZkBs4Qfang== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mEUT5widYnsM8jGiVBHDB6HffutMnzzql0eQU6JxxIE=; b=hZ0+aIDXoVZVJgNSWwjiY0CsrjE2MV3yk29Z3n/4jcNUmoYgP8PQrxQxxjIzr6Qhy0f5xCqB6XpFVu5sFcYv2h2eurFuYSGwuyiayrRlnwGIeKNzlpmt2SdNI9pkoiw9vtFILzDgFg7QKLAYersrrQRpC2gh/Ct5ieKd2zTeteI= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:13 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:13 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com Subject: [PATCH v2 3/6] rcu: limit PREEMPT_RCU configurations Date: Wed, 6 Nov 2024 12:17:55 -0800 Message-Id: <20241106201758.428310-4-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0122.namprd03.prod.outlook.com (2603:10b6:303:8c::7) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: 91dcb46c-6022-41af-2343-08dcfea023e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?iJja5Aw/TMp9RMmG75jIxFaGoYOr72FqEqyQKwpMMiMeJPFdb18ITLqOzicj?= =?us-ascii?Q?iHiu8vHcM248CIbRgcVUhKtghGyghzMW0EAdhAXyp0tXbT9ES2jg/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YUlaUJihUUGxfdY/VHlI+4idFCd8PmY6ThqtwaIvXopN9Vj3lz?= =?us-ascii?Q?GO+1ZBP8inmR5DfV4lTkZzMX2733b3i1wNNOLImC09DK3s0crfqlRb3eka90?= =?us-ascii?Q?PNs1zjziu34eincmJvZZXUJ67yLprpaqkVodVIJYVFweiZBEYi0Z6VolYRX+?= =?us-ascii?Q?AEV39U34lBY8R1pLYbq/Fn4gVL2TqQtbDhNvQaywj55C1hI9oiYfvTKHSHSw?= =?us-ascii?Q?O+t4rcT3tOxoWK9pOvhcHu4YWVJ6ELkXo/uWZPC1kBjrFZyyB5NzzpB7bloY?= =?us-ascii?Q?x5ue+ofihaFwbIhHj+hQ6OWD4A+v3rkKbwueyD/UxBXCf/HB2Qkyv5mY7wr1?= =?us-ascii?Q?DfSRpuBTQWeezp8TW6GJOyxs?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?I5KdKJctrobuzAqhrPSQOESVJxH7mBfjo9xUir++I9NlqWG+G3+usQwDHT+Z?= =?us-ascii?Q?NPDIRmZ6pIgRi5XsZKPSRzzrjtV9YVz2vdPjOJcbRrEw3AnHv3Zp9PzIz3hW?= =?us-ascii?Q?DgSEqxGpe/e051x/BcDDE1XYATJSAyG15S5uj7ARK1mlEygoekY6Uq36Se0j?= =?us-ascii?Q?9wGOloonBN3DjALV1WmJ0lYjuBgrk2S/SBVCy7KvBHk3n5muDpliSy065Rwj?= =?us-ascii?Q?ItvaPzrnh/vWTwi6kjmxhxoau4lKTju+6+s8TD1Gqs17lhoOuLXpcn3xJ39z?= =?us-ascii?Q?ZKmiHdc/VQ8vO1o2fIZx3D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q?g8Cobisli7MQJtIi/z4WYpn/m86anuNOqeKDC/80cz5eIK1VbhlpxrzoR35m?= =?us-ascii?Q?gCzj6j1KUCDBq/T1Sx0iUsI26KqJ1L1/ZDCxwTnCZMMqtiofPOVUDFQwbyBZ?= =?us-ascii?Q?rgpydhzx1n1Gna4di679ZUnAfSogJPbECOgQ3RXnU8teSs0U0XX/ZSxloA4E?= =?us-ascii?Q?Ph/mSfk01wXxStENY77bRjzjugeBl0WtnM7IlTcpivns+arFiJX4lS18kz95?= =?us-ascii?Q?H46lCxodDasfvqHpQNAUWaPDSy00Py3C1v80QeJv9kZMd45iapvyKPTfulqJ?= =?us-ascii?Q?RZ+JFOjjRAzut12Jp1RGBDMLaM2SP084lHRviK6B0NiZ5sP/rFkEoxgh9POV?= =?us-ascii?Q?fW6vt8fl3xBxmZG0GdJBVHqb8yapOzEUUpll5J3howoesbJ5/bhdevcRE1v4?= =?us-ascii?Q?1w=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: uA71qDZMmrD6aGPpV8Q+9TCuuGQ3KK6YPu4cBxUb/UNkvFUVG1MJTnwfeG07e1Ba0SV2mjyX+Ft+bCh7swzI64UX41/eQkeVJRXUsMaRKV1CDmUJleSajmcOcHg6OFjoY1YfMk+sTLOI7gHk2dDGoCSB1mrEKsAPaJbHvLvDR22qOLHMXE51DWnBfu9BFB6wK3naLbJF4FhN1N7Xfe7ZpqdXQtRGXuyKA5oYScS4yjE9z7fIWYWrG+eVnvJl4cSsbCTrWPwkz1IuRSv8P2dVcDGe7UOkJWt9pGy5+IzlDmpEQxdKMTklz+z3LmFWp6oxuKtiDGKBArQkAJQAZSUdGNBt2dpXpELmdYfy35QmOEsTSa7ReSd2CqpUMtpxi+OV6y77bzZdWC9caGDo8lUrNagrsopGvgz0OdGo1lTwSnQEwu5ijvsRgIPFOg4+z5neBOimwFNe7or67i791aKE17M2ubej+Vvd0tohL87d5OzhkObGDn6Z0rgwxaKaaWPqQaNYDXjwAqXyHXM5kY30FB224lmXM98E2e3SnlKpH4YCdhXcXYmN9XmP5fVM8ezV90dyW2QSb5SrcBJjnlljuryuIS/V8h6mBwvDe/0HmFU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 91dcb46c-6022-41af-2343-08dcfea023e8 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:13.2438 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OXR2TBg5wvxZwMMicfFwMg5yFNGtfd8SoJSw0BAGudVvL+oolhBlYwjk58CA5Ytpecx4bEaIqa/3o/Ik3Ipima1QrEROvqHxCm9wILaZn6g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-ORIG-GUID: T0GZR1mg6HtKfAe0n6KnkfO5y37C2IRI X-Proofpoint-GUID: T0GZR1mg6HtKfAe0n6KnkfO5y37C2IRI Content-Type: text/plain; charset="utf-8" PREEMPT_LAZY can be enabled stand-alone or alongside PREEMPT_DYNAMIC which allows for dynamic switching of preemption models. The choice of PREEMPT_RCU or not, however, is fixed at compile time. Given that PREEMPT_RCU makes some trade-offs to optimize for latency as opposed to throughput, configurations with limited preemption might prefer the stronger forward-progress guarantees of PREEMPT_RCU=3Dn. Accordingly, explicitly limit PREEMPT_RCU=3Dy to the latency oriented preemption models: PREEMPT, PREEMPT_RT, and the runtime configurable model PREEMPT_DYNAMIC. This means the throughput oriented models, PREEMPT_NONE, PREEMPT_VOLUNTARY and PREEMPT_LAZY will run with PREEMPT_RCU=3Dn. Cc: Paul E. McKenney Cc: Peter Zijlstra Signed-off-by: Ankur Arora Reviewed-by: Frederic Weisbecker --- kernel/rcu/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index 5a7ff5e1cdcb..9d52f87fac27 100644 --- a/kernel/rcu/Kconfig +++ b/kernel/rcu/Kconfig @@ -18,7 +18,7 @@ config TREE_RCU =20 config PREEMPT_RCU bool - default y if PREEMPTION + default y if (PREEMPT || PREEMPT_RT || PREEMPT_DYNAMIC) select TREE_RCU help This option selects the RCU implementation that is --=20 2.43.5 From nobody Sun Nov 24 06:07:51 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 609B520BB55 for ; Wed, 6 Nov 2024 20:19:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924344; cv=fail; b=oklO06/KyxFySmWOwBK/cWegGYW/gRwBTe76gbnpzI+mWR4M0BcjRbsw4Og6RG6WAAUSDF4WrjnC8ZVZSQcEPsyf5KG21yW2SFoDk2h/AZLfg9/JzApieaI7QNvKZtaesYETrXTJFmCTaIhdah69a69E62Tajuih/p2XjNbwQIE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924344; c=relaxed/simple; bh=toR+bl5Qq7yfvtID2hgsQR98EUl89J8AuDRcftuC+Xc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PjxEmV7Siezp5cShSzplBieaIKCW249/Q7kv83xVvxE0JE38RlMBqYW9PlvJjKmFcI+3p8NOUxLhc6N3Nu1jtvd/txGtZmPZaEd2yCpb4UHBkddEovcd4wH4dPsUniF2K/n+UiOKPr/LpFa+lrLNXVfrYVSxjqRLoNBAHa/82gE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=BUEdI30V; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=S/ll8L9b; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="BUEdI30V"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="S/ll8L9b" Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXWi0023148; Wed, 6 Nov 2024 20:18:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b= BUEdI30VasM7Dg8LNBtoSZlV0yw0zB41/C9k0nQ3VKghmsnT2QgmeQeJH0zHzEd8 pmpYCrWENLTF1QYjug2D9OraBILNKqgeGWrYyv12FXKec00VJNXIfKyiPV4RbSis YmT3mYk/iNPoIa2hb+DgpR7rK7NzgnS2xO7sDOeOo6HDY0Kmsc256nD7mc8MxKz+ vbP3nLkR3VMtjM2f+KWzib2E1bTSt5G9oxiUmuMvriZufYNwghGAeDnn0ElZ+TgR FISFr1AOEISNlcW342iRI4pVSD/R0usdf4XUVuJoPs2Sjem9RawcZKYKfQ/GTHW5 gwxsDDn7u8u6CBYpVAjIMQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nbpss0vy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:32 +0000 (GMT) Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6ItHS6008469; Wed, 6 Nov 2024 20:18:31 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2176.outbound.protection.outlook.com [104.47.55.176]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 42nah91n0d-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FUssV1xNvhv9E/H95M1BUm9Fm1hmEIte1VuH8I+0qd2ZAOAdokvkkWupI19fEg7jemVfJNz+ieeTkfJS3skCWra/sJkOy70cA0m2LuXvFTd/umegNe1ciGtuppDtWJsYNPw8SMG548A1J/CXyQ6WRm27EtC/chGQ1148jrOU5b1vsNo4ADrOh5Eq6r+2UOaFBkfg+C7JgGGUpBP30HBA9TG87kdK+Yzdbmd1da79FNXMZLpekyl4vcxQxXJx71QVlkpsmCn42DW2K4SJjA+hsImj2ZqbeTFjimSXITrVkrl3NmdomqhQfJgOV0AY+rWMl1AFGoiHLKrsBu12tZE5XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b=sWxISgxOCm70hsCydgTeYwtv1CFtw+FSBcRJbgQbaRJ0+1DBrWyH9sD00qomFnc+Kv9p6LcDGBmj9ZF4l3b/k0B1F1+wreFchALhNOfbvyiMa0B3iIKjU9ouBgWhO8ninARlyxytsPh2z4Dc3yp7+6HS8NH2vR38wwl3TckTsmdhdfX3RVkAuNF6WNwDmcn83ge4VEWuE7EKUZSqJryZZCZvp9w4jlTCqikFXH0oFsWr+nRwGlcPCeAxIWjlcWE3F9/TLN8plaONZ9XKwjc1SPrjsEr8kj1+iqGu3A9Sjhd+s4oqdiAKbAlvf9YpxtYSvJ/K5s0VXRSbib2BuF2n7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qFWAOT83sccsIUzYCey1DvxJ5ag5g5q6b7wWaxbW3uQ=; b=S/ll8L9bzXLr/h5vvETpH2fa5tj6g+ndNdyhGJ4SgcUmE2FmUa1T+JmzHkofNkJVHqeusVcLEQWlQLEgrSVwYprOXSdfGuXR8ltIULjhW5WpF7Du6NFFxwBbTGbo2UZ71D9vTMEkBzmGoFxDyEUhnbTF4XHgsrVQXBJ2nRdlulE= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:15 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:15 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com Subject: [PATCH v2 4/6] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y Date: Wed, 6 Nov 2024 12:17:56 -0800 Message-Id: <20241106201758.428310-5-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0148.namprd03.prod.outlook.com (2603:10b6:303:8c::33) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e18ab48-a2e3-4403-4a2b-08dcfea0253d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?+FVW7etgRK+bAkfbC6mdm1VMeVzK0kQbPuHsIco4B3QEiXtnyNRbMZG6G9xa?= =?us-ascii?Q?N8kX84m0rwAiddXK4kl/f+2wdCjLyZvih3+5Ba6a30Gj7cqDwZubSHsPi+PL?= =?us-ascii?Q?thYz6Fso7+/g9JdnEajV3VznezzgM9fBNqgX11yK3uvv7C/qS2EwN2G0PODY?= =?us-ascii?Q?D2qvM6HuYwl06zh2e2rz4GcKiUA/Nl6ftcy0QHykRAYHv/cnuNTIOuF5pad3?= =?us-ascii?Q?FfiIceHZIpgdjvN5rhjDJcD8S7nv3qlHySZiGnRXC2Wk2/RlHLyb5VDg5le+?= =?us-ascii?Q?b6HqdyrTy7IU6bNNLPj9CE5AqnYId6rSxkUJA3eM1eHoe3Gs0IMGnvjLoDTu?= =?us-ascii?Q?8w2ivgx0bGoWr/+nsh61OKoJ0ILAMOnoYzzGljswlbCtHeCfT80Q1Ulh/tcI?= =?us-ascii?Q?Zd4Aery64LT+ZGN6NAeFAe51h+qv6zmb48uZKudIcId5OfPEjsHpVGe5Dwla?= =?us-ascii?Q?WBv+2ZbY332ku3tP80Z+9So+IIYKAmWXtk1NfqlMN6hcg1l8QnNPTEU4ANa9?= =?us-ascii?Q?ogQ1ICQ88sB7vqk4UaZzFycxzO+EjxfOgM8LEQj7iqSVhPcBbcJKI3VKSOpk?= =?us-ascii?Q?lMQD6p+vlm0276uKpnjaJQFn2WOXGcj7K2hyhPktcQ/rbyTp4tiN2NK1OCqJ?= =?us-ascii?Q?dF42/sRRwHcAL5yt3avmlF20Fxlm6rYEDu5Tz3j2+LFmvczJYQJIIfuTDTVF?= =?us-ascii?Q?japaZfCKe/M+oq7U/MZ2F8H4eYsWplJmR7w6lf9XsWXfYK824QH3dpCl0joj?= =?us-ascii?Q?75UzJVV+HlRt+rF3oFWebTqoP5S1WQBUb8WtuGROl6WhMcdutbgTJQJ4GXMG?= =?us-ascii?Q?vALWXMMF9bx5O+XZmkXdG/jGYPf2Yd5TxGaxZRvqBjemd47XrNctfYldkS7p?= =?us-ascii?Q?tcROu59SgCvObW08KJKHzJ/NYrwpmYiK2MfAbRiYBymgHNISqtgprgwpkgHL?= =?us-ascii?Q?qMkYJ0/fgSpJFFUZP11TX/2VSgUSC5vJ/+MoAGGtbmMFIwyEbY+Jou+J73z+?= =?us-ascii?Q?xW4ZgumoCprdy7+99Q8U0Nl36zjxL0/xqJIGZjuyJPQPFbDrtmmEoYBXdfEn?= =?us-ascii?Q?kVQG/PbS9GFyA1nxxVOZ7rpeGz4T0ieR+pnk/J8k/TULC1/bEFNbhlWSwkUz?= =?us-ascii?Q?KT9/MctNl1o/wFErlmPlW2lhbee9bI14II9o/juQRKGB02GtTJWDqiu+yHRC?= =?us-ascii?Q?w5R3HcfUujj7lehjzkc4DKLJpga5uodMSIVKsVimA5INRRluVy+shVO1jW/t?= =?us-ascii?Q?BnDEf8RqABZJ6d3OmQd4TQ0D+JQvZBX5jQte06HbT+hIAL0EG4SEub0YaO6D?= =?us-ascii?Q?sSGL8vqu7G/jun3hTh6NzCnx?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?3wptHjotRdBvlF1x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?us-ascii?Q?n89S1QBooeXL70zqFF5/QbTeKgf6XA8Ik9GC2fN3hFqqYOiy8lMHzw5v64mm?= =?us-ascii?Q?5fH11cnVEJNAQ9WHloUNpue7k6yItcRAznVvtF55KzPWnwSbBmctvniP9ow4?= =?us-ascii?Q?L7SugueCai/JyxHliqx+fGH562xvPUmzc6DiGHZB74G0r+2g/GKJg0yqTtuz?= =?us-ascii?Q?pq05p9d1SMVE93fO6McAiyp99FHQcVMQXPahW62lukBM800lx14Jn9t+RtQC?= =?us-ascii?Q?eFsZ8qaFdYN/FSW59amlyntz/Er29RjW4HSkIkIjQZ9iQlqrsNdKnsmk6wn1?= =?us-ascii?Q?Exwm6cNmMM8KblWYp1p2/A1eDqAMduX36M12/5pltqDLlnWLN8P4LMH19RJJ?= =?us-ascii?Q?rwPaHV6KyeQP3Oc0dCNLH4XKBHx2VBPLiN4kbEmanh3Yvl+biOeF8xjkkIGy?= =?us-ascii?Q?ySdQNgK7CUodQUk+884t+i8jNxb+wX8wzuP8dONDnFyL3wptIN5nrsyzm2++?= =?us-ascii?Q?H21a4NqwJOpRDXOwPD4TmcyImi5/erSqj+Xfy+HhELLZiF5qHLHOx6sLZXeR?= =?us-ascii?Q?O9NCnG11zR7CrufmRVFHAqn1fPkr2sxDIUl8lsCmeJGa9uy72LG6Mo0B3NM4?= =?us-ascii?Q?Dl4LOQ4ybFGhtwgMVmujiKiipP5En5c1t8UDx/ps906Z1vmJMuOtxQ/sGwab?= =?us-ascii?Q?d0iBwRjHrKH5+OQ+75zxgkNMqBAPIdOSdTX70nDt/FnxRn0jdkF2tKO76EcN?= =?us-ascii?Q?rw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 8jdazl+Ry0HOErweckLuSlmyg5WBl80OsAnfGDeT4/80oBnq0kviS6EDsEbpdL7wnURKLK9c0koNo/rB+eX3tikHxxQSO8DrTMWS8HJWuPyb3vklgHFiaaYwKzaTqGazPuRS6JMCorlu9d1vXrqpkmz7CGW3WxoIkW7v95u9X0gexDmrAkRg/lqkjf3NoIvY9aYsNd2phMxpPPaD53authJ/+Ngex1xF+VtMUQugxxSFi6TQTeZUd7oX2GTOSIvlIhqLkRoBVky2VbHuWVsL/rwAb6NR/L4kUlU3waOg1+6lNNCnmBEBl6n/HqJU+jy4QjEoY0LE9rvU2jdbJY+VfdynMgKZLf4KfE4mb9IafgDMEg8X3JaqefOhK0dcDvnDyq3ojAcCfO3/ZPkKtRKwU722wkl408x40+a+kZ7Y7amz3zOajbAQblMoRWX2iZcm3WSwfcHE5tp58doi/tzmEQSTF4oNcxto1qK+DqeH2r4JTRfwG0CoWL6PlDA4w0SlHbvMiJggicaUU5jX6aP4CzixTqZbgu+Yx77nvV2t+Nno3IG3MMQVBSscKcknFH/xdl204Ib027b+z0RkDKOgZCq2p55ZZnxJSKL//08d0hs= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e18ab48-a2e3-4403-4a2b-08dcfea0253d X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:15.4624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hAT6LDYpbXNT5CVENHU+1RfUkF9XoXULfvBHrF6l1LB5U+T8ZSaoPrRk+mR0VKBoEepbfgqktBTrH7XVEyjjXO6EWkkpjCS9cFboMARl0p8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-ORIG-GUID: WHItWugsbgbrzpbpNHnfJQO6hZQBVZE0 X-Proofpoint-GUID: WHItWugsbgbrzpbpNHnfJQO6hZQBVZE0 Content-Type: text/plain; charset="utf-8" With PREEMPT_RCU=3Dn, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed, was lacking preempt-count, the tick handler has no way of knowing whether it is executing in a read-side critical section or not. With PREEMPT_LAZY=3Dy, there can be configurations with PREEMPT_COUNT=3Dy, PREEMPT_RCU=3Dn, where cond_resched() is a stub that does not provide quiescent states via rcu_all_qs(). So, use the availability of preempt_count() to report quiescent states in rcu_flavor_sched_clock_irq(). Suggested-by: Paul E. McKenney Signed-off-by: Ankur Arora Reviewed-by: Sebastian Andrzej Siewior --- kernel/rcu/tree_plugin.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 1c7cbd145d5e..da324d66034b 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -974,13 +974,16 @@ static void rcu_preempt_check_blocked_tasks(struct rc= u_node *rnp) */ static void rcu_flavor_sched_clock_irq(int user) { - if (user || rcu_is_cpu_rrupt_from_idle()) { + if (user || rcu_is_cpu_rrupt_from_idle() || + (IS_ENABLED(CONFIG_PREEMPT_COUNT) && + !(preempt_count() & (PREEMPT_MASK | SOFTIRQ_MASK)))) { =20 /* * Get here if this CPU took its interrupt from user - * mode or from the idle loop, and if this is not a - * nested interrupt. In this case, the CPU is in - * a quiescent state, so note it. + * mode, from the idle loop without this being a nested + * interrupt, or while not holding a preempt count (but + * with PREEMPT_COUNT=3Dy. In this case, the CPU is in a + * quiescent state, so note it. * * No memory barrier is required here because rcu_qs() * references only CPU-local variables that other CPUs --=20 2.43.5 From nobody Sun Nov 24 06:07:51 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22E6E20C49D for ; Wed, 6 Nov 2024 20:19:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924350; cv=fail; b=Ev5GrVhu/cr65YOUaAvvtu7izKiKai1pbHC/V6FzXgeKPey7qh3El91vpG9aEFfpdvIqhrOCAhr2rgVQcuoPSmSo0rJcq1zo1zgBMBDLoU0qd4OWClnTu1akHz+paKf3lpeBmQ97jAWFE8GplEgv2z/URT8xDOLU0l5cMgNBYco= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924350; c=relaxed/simple; bh=InBqwZjLM17O2oAAjdNp6FJKNjF7kU/R0UsQaK1RnjU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Q6uLQNmOITPR7S21U0EvxQi6pztdYg122PDdJM9P4K2RSHJxtX+u1wibu2oiaGajqheFwZ6Grc3U8W1lUEKEbmWHVFG0SlNQCPCWL1OibY2DMFKvR5UhV2slAN/+imb/eM0BXxLT5KAYM0RUrvugssdWg8tYxRzsBfPud+GyGMo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=a7NMLIgF; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=vzydf2rI; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="a7NMLIgF"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="vzydf2rI" Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXXJw005483; Wed, 6 Nov 2024 20:18:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=v08h8woyqrHWMEVfB1u5oCC6UWzQHRDiRI3lZ5dKGtM=; b= a7NMLIgFbDJgVzy1NvzRur4cd6M430k+XL9s2p6lLiaq/NtK01Q+r/Jc/g2Pma/0 hSXZv2n84LLZl0NpFngAT8rcQhXYF0TK/7P436f7JVNWdBEvR2nSFLu/uXiOY7lJ TqmqxIrXPBJE4/KuerJjubJDrfKEgkr4CHfpXgzGnhgBWTYXq0SGEaXWz0npE+Nn LamUswL9q046LeLAdMfUq6UForc3/JpZuOXqtfTPxrEcE8r6uma3NDvXLk1atL4I z20SzD6qf+0iZyhXg8klLp/ua9xO2EfG/czaWYD7jM7vl3atAV3AqNF8+tYJ47WB nopkCH5E2s9eTRPZWWfy8w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nagc91cx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:41 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JYkik009712; Wed, 6 Nov 2024 20:18:41 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2046.outbound.protection.outlook.com [104.47.58.46]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42nahfc0pq-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mB4WS2xCnBIBuzSUWSE3mKcqMo2QMkvkSfaUCWEvrP6rxF6WPKeF1VUO7r+SZ9r0I8OwrRauZtA4X1FQRgy/7c9Y3U44cMb1QQGex6csoA97bA0gx++gbeUdznjSfQJFYiWSu/AVx4btLKDvl/zWcuNaAL8UbgpZWqCNICswGAEKskeir3ixyEuywdCbc05tCLjTc2DHLSDuA/mN+K+eUSwsR3q+oNHxWASc31T3Ta95jWWTSDLZCsbmERXnvtlEhmQLLOI/OBgCA+awG1G0c4n7r48TtrNLzi+OpP/Y/YeXpVpB0GUjmjNMC6vZKmGfDu4OfVRXc7puYFPJ5IxNxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v08h8woyqrHWMEVfB1u5oCC6UWzQHRDiRI3lZ5dKGtM=; b=QUYHbG7NiLGs+29GKyegA3AYIbyK8xZHky85OAtSt3iMSaQdp+gMOCkpRkaXLYw+0W3pthi69L7d/UVGXWIuVLnxqz9cnuyjNmQh2nGA9WNOQ/QNH4pP0yRXfKLztZ8qTTbS2Xn/Dsoaollq8roRiKspHoRxwNxOWU6OQijEt2oV8Godv0QWVIwG3OM51TkI4RERxyOBRxbriDUMjSsGzr6gwjWDuPRaJVjs+ONSehRZRBDbU6tXDyBPOScwHssOQNTwInRMWAhpgR90w1aaBTZBEHo4jMclJ/o18ZEVRUmYsNBeWhO+EDRxH4+CG5AzX5Y+JQ9tjjCHCbssWIqWow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v08h8woyqrHWMEVfB1u5oCC6UWzQHRDiRI3lZ5dKGtM=; b=vzydf2rIOx4yXxdyJvbZ/oqQOr3EmWqh/Es6HddpVZW/Fu3Y59za5MjqSNvId3F+vhbV3IF40s2wNJIrmfXcZk8kJHLEBmL2yP0OTy1AAbSx7IzFoKhRo2/oh2+NrOFJwzdrJMmkU65oQAannvllGGdtdfGLlD2wtaB653SWcUQ= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:18 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:17 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com, Daniel Bristot de Oliveira Subject: [PATCH v2 5/6] osnoise: handle quiescent states for PREEMPT_RCU=n, PREEMPTION=y Date: Wed, 6 Nov 2024 12:17:57 -0800 Message-Id: <20241106201758.428310-6-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0138.namprd03.prod.outlook.com (2603:10b6:303:8c::23) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: 188f712e-ea01-431f-81ec-08dcfea026b0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?XvheWkQ1488jcrBoNHiNnZnD+HffcH+uNfnD75dJnh7/EoyiBz1PLltVKbxN?= =?us-ascii?Q?XELIqBi5fC7vWU1kut4YQGhJiWUEcmX/uTGi1FyNBgFoZ+fu29GWFYbduqJF?= =?us-ascii?Q?u/VOQtdMgYhgNQ+2W1x0RXGErEWTwqN4UiO86mqQbl3opSgWcX+nndpt8TFJ?= =?us-ascii?Q?kzwFjtlY1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gziR+JHGmS+d9WM?= =?us-ascii?Q?5t2wLsNanCZSanZP5ULVK3MI0dHlHiHosHHbiswjwZYmZLn6YsbC0JriyEMV?= =?us-ascii?Q?74VRgzhrTcJQeb0wHwAzuYo1sAK1NGsdKIeaAaSPgvnv17RVZxCSkDVL5O+I?= =?us-ascii?Q?Nve3+/+PcMxOqueOr48V16N7dquHrn8iTK3rqgMT9a6XddRCyQe2QyZBWMMb?= =?us-ascii?Q?ivFjxos0o+3/Ev/80csIKe3s52mwW/xDnkuyGCiARI/0jvhJVvFluQh/xqWZ?= =?us-ascii?Q?DeLaBd4VccQFlQfBYnEu/9rF?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?K9NXJOcasO72mfbNOlXf+QGkHBVToWObPdFviWbdW7ARS1hViHrNEISpJgQ8?= =?us-ascii?Q?5uZV7SaQA1T/O+iyMELeyxZ5u8q9kDWI3Gzzu7EaF+hiWtJ6oRL9VbLLdbU0?= =?us-ascii?Q?M/P24RGc8UFrHJCwFi6q3PKlHOdttPQ41wEPac53Vh9I1REvlskaaoa5IeYv?= =?us-ascii?Q?3xvEtUtxu5g7+mNBPTv6diy/KH1qOaXTktQgg87rTkxVjxCXAN6xJfTr8Ksn?= =?us-ascii?Q?+h639J6ZQ6/NfyTzldZADr2RfZ1zMHhC9d9rDYMBBodroX/5F74nsC1gBfKL?= =?us-ascii?Q?MF+WuHUNzUXrSS33zYiELfWA/ldsc9JbmUTzcUDCmY+b7IYF6cTscrnwTjbS?= =?us-ascii?Q?J3wE+qMbArZ7UnljEOzrkYH4gcufi1yWTNyK9cP6kaDyfR2PNzkaUWfqfq41?=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21F7lqXbicNPACSCp2BvsN?= =?us-ascii?Q?dD2wLAbdjEdciggwgWtNYkqX08vsnIy2ioOZhiSgqb2vobJSTY8jIr62/uIq?= =?us-ascii?Q?QpimwwghKRfMOzhvJ8Rc2DAGhyWjZzbTFexVhH7LBmqF7KBXRWhsdPFegPAW?= =?us-ascii?Q?R8oRKkSo6lrel40UUZoree/5/Hz0WO35MKNeooTplehwygYi0Ul7vfD7tnzS?= =?us-ascii?Q?BXvz5nu81irB/sZQIB8kNutcjRWt3h7sCClqlPpnoJotQh+D1TTRsoU4a3TL?= =?us-ascii?Q?p9Ob4LQu8OR2I4jsvNwjryUUs0tU00TyEwSnUhpDwHfQ7OturPIRPWCjCh+/?= =?us-ascii?Q?lA=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 2tHC6g91l6/HPq1tOoxgi6B4UlYLx9qnyB/NCm6Jytv3+lDcJm8spy9MT8sp9dAgee7uNYaE2m4e9q65p9KvGmYr/FRyab6UbA8YaGkl+Nhrd/n/sefucSq1k1IwxZhl0Q2ChkO/gCWoMHMXDuOHZAOvyICFKqEwZFxp9wFqRFJHJfp/WXyxHq/DH5PNyh3qwV3SV77C5rlF3jjLtH4U0WMtD9slpZ5v84/XRr084Ttp4RmH72WVU2S6RtSt6wuk7Pul8cb5grtYqUCIZvFExCO+Q0qTgu78jpB7gwv4UJ4CO42OoSw6Suqm0qTujqnsoT2yp9ScJmSvv0jslqI1j6DMDehojLdXnXKUB8cZ5Om31B7vGsKW5C7A5JkkwKIqq9DYehtgmhl/0TmCAB7ydQLO/4t98wIi3fxVlZOocHS7BmaMhrsvNXxNsaZAMbDYNTlVzK9dOLqI9J4xSB4223yg5fbFbZutbzwZmoLOictBueyVTjbaSUftEdA/+yDOSsr25RGD8bytkYpZs4Pyo90t9K33DhaV8p7h6Bu02j5AVBL6GbYbCpi7v9Ch00hKvdTEjT6ZfxPQvUgZZDFIYGh4fBhm8k+MqNT6BwqtaKE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 188f712e-ea01-431f-81ec-08dcfea026b0 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:17.8871 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: f9AvGGD1o9k9cgib305QRwtA6Qizu+LXjLgfqJ19UUmtorMOW7KGQf6Ugrw4oNBMoDmVBL9gstSEUPS6QkWyYSHqpXgV+eY9jvRHOBtydVI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-ORIG-GUID: j8pmL7CcjWGxwIn4-R3n_jUF7nY6600s X-Proofpoint-GUID: j8pmL7CcjWGxwIn4-R3n_jUF7nY6600s Content-Type: text/plain; charset="utf-8" To reduce RCU noise for nohz_full configurations, osnoise depends on cond_resched() providing quiescent states for PREEMPT_RCU=3Dn configurations. And, for PREEMPT_RCU=3Dy configurations does this by directly calling rcu_momentary_eqs(). With PREEMPT_LAZY=3Dy, however, we can have configurations with (PREEMPTION=3Dy, PREEMPT_RCU=3Dn), which means neither of the above can help. Handle that by fallback to the explicit quiescent states via rcu_momentary_eqs(). Cc: Paul E. McKenney Cc: Daniel Bristot de Oliveira Cc: Steven Rostedt Suggested-by: Paul E. McKenney Acked-by: Daniel Bristot de Oliveira Signed-off-by: Ankur Arora --- kernel/trace/trace_osnoise.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index a50ed23bee77..15e9600d231d 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1538,18 +1538,20 @@ static int run_osnoise(void) /* * In some cases, notably when running on a nohz_full CPU with * a stopped tick PREEMPT_RCU has no way to account for QSs. - * This will eventually cause unwarranted noise as PREEMPT_RCU - * will force preemption as the means of ending the current - * grace period. We avoid this problem by calling - * rcu_momentary_eqs(), which performs a zero duration - * EQS allowing PREEMPT_RCU to end the current grace period. - * This call shouldn't be wrapped inside an RCU critical - * section. + * This will eventually cause unwarranted noise as RCU forces + * preemption as the means of ending the current grace period. + * We avoid this by calling rcu_momentary_eqs(), which performs + * a zero duration EQS allowing RCU to end the current grace + * period. This call shouldn't be wrapped inside an RCU + * critical section. * - * Note that in non PREEMPT_RCU kernels QSs are handled through - * cond_resched() + * For non-PREEMPT_RCU kernels with cond_resched() (non- + * PREEMPT_LAZY configurations), QSs are handled through + * cond_resched(). For PREEMPT_LAZY kernels, we fallback to + * the zero duration QS via rcu_momentary_eqs(). */ - if (IS_ENABLED(CONFIG_PREEMPT_RCU)) { + if (IS_ENABLED(CONFIG_PREEMPT_RCU) || + (!IS_ENABLED(CONFIG_PREEMPT_RCU) && IS_ENABLED(CONFIG_PREEMPTION))) { if (!disable_irq) local_irq_disable(); =20 --=20 2.43.5 From nobody Sun Nov 24 06:07:51 2024 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25FE620C339 for ; Wed, 6 Nov 2024 20:19:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924346; cv=fail; b=L5LMHQXJ7F6jhSDSGECACf4Q/Wa1el8/wnRRcaUuXVm6dF4WNU9MhXbPkfYb8i8/hwFHTXdcOLyXwHB4oTFiMGSYb1GyaZ04ZkEAqzmXNroVUQO1Eg0VZZ5YHTltMH8YXiNUHOIJ3x3PcHXsJtN/rFS5F1Dpa9buvt2KfvUL5UE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730924346; c=relaxed/simple; bh=xwgG1vXQAWNMgbFUPhRJk8BcpdUM03aSgI0hltXO+0I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=E6ZWAQgTysGe2U/fpOUDd3q05AMEEuXA2i5ATZct12e7wYgW6RUYfdsSesyFaDsn1lPFmiif4mB/f8gKa62yn9Le3ky8TyP9/niB2SbgVtUuF+WWnVngTb0qd5Rom5fiatonpRCdABm7yfavctwd5Z0XDOmLJdck1PNebmL1tb4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=C83LAK23; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=dXxr6FKO; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="C83LAK23"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="dXxr6FKO" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JXXA2000507; Wed, 6 Nov 2024 20:18:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=Ac7+2S072WRZTYlD9j3ZVvZlMApVAhT14PI5THc69tw=; b= C83LAK23+GY6aphaKosMRPG5HMAmn36X6BhYPNKc/pzTarDE73J53BZ826TIX8M3 HuwdyyjFAvnXVgtCowBSNP2Kujt7RtFuBsFra5cPM5jk+63bc9aE69As4zLet2rl 509IiTCbdwjTDYZ704rZhHGw2BY7x3tcxLbYjAzI7ymn1Jk4LKsJMPuAkVRbKPyM EapoiK9eEpgpdmL+BtgSb3ekMUC5B5weIBTf0+BpXUPL5NdV0yEjz36HdFu5MlsG swq74EgrmFF/ZhqIIaR3mHxuab18dxBu7ZATjcHpCUi6ZQFaFaplyZwDj/lgBDb0 Uv0eK7Pm7H3kJVzueWR+Qg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42nav293jq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:41 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4A6JYkij009712; Wed, 6 Nov 2024 20:18:40 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2046.outbound.protection.outlook.com [104.47.58.46]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42nahfc0pq-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 Nov 2024 20:18:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iFQPetVqoYE3SvlMG6EQkaJrQugxbl1zptVd5zZM4mJTBfGwCirCR2OUjymf6ftzHa1Xi+rI0C52MEizOmdx87wbMRY4bZfDlotj/yU+sYaQAk87aCSOJ3QUi6PL0Dk3cIMOs5t4Qx6Z2yzpNnM+1G2dyZ61vVQKmJsM3sry4grS4jrtrFNLDi+KxHVHQToVZcP9Ui9bphuUudAzXuLvyIK7NRKUejVcgAQdrDoz0/ODE+llXZcbUAeTqczNg5Gr+50oWGkha80kcFrigs8qdxvBaVyGVJZvHmI3lSgLR/QK4Z/SNzOz8xoLNe369U+FTvwsqsFrJY6lafbkQHYMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ac7+2S072WRZTYlD9j3ZVvZlMApVAhT14PI5THc69tw=; b=YumQX2uau9dsehJ/3zU87oWj+LJgtR+SC1hlES9tJIZjl9++yS4E+yufVgb1o3N1Mb63ouFbyzTCy0la15mlaCKHn8TGKaUTTF0lkpKyGh60u55f0T7B+OatJfgMUXxK/Uu3WNqQCHinYAI0WR8pZnnMum/F1YsilhA4F7o3eJE6Zw59blMZe1rcxOld3RalVvN/4EiLgXoYKk44pb5lgs7GjfhVTlVj23/mzZHMemZLu4wkdm6gRadfC//YhJA9RKUDyRwz2HaDWGES0UiOfYqz6orUIBiwb/jOtgnIPu+7Ej3nkbHyqIBAip9wlctOZdOCz/hFZKhUWIKZ/ifV+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ac7+2S072WRZTYlD9j3ZVvZlMApVAhT14PI5THc69tw=; b=dXxr6FKOvACbWWrHR1ItTd9Y0kiD6ahViq7uVkX8ziEZ3evp20WpFHM8BPvyCKRcBD7Zpz4/XhPWt/HJuVXh2z0CA5AWbiKOtGEvRv2ToP5C/6+ZD9bgMsm4PNIixzflMX7weEXcYUqQIyHC4/QdD7W+43Dj2M0iL2ft3uELmbA= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by LV3PR10MB8107.namprd10.prod.outlook.com (2603:10b6:408:290::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18; Wed, 6 Nov 2024 20:18:22 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::25a9:32c2:a7b0:de9e%5]) with mapi id 15.20.8137.018; Wed, 6 Nov 2024 20:18:22 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, bigeasy@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, frederic@kernel.org, ankur.a.arora@oracle.com, efault@gmx.de, sshegde@linux.ibm.com, boris.ostrovsky@oracle.com, Ingo Molnar Subject: [PATCH v2 6/6] sched: warn for high latency with TIF_NEED_RESCHED_LAZY Date: Wed, 6 Nov 2024 12:17:58 -0800 Message-Id: <20241106201758.428310-7-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20241106201758.428310-1-ankur.a.arora@oracle.com> References: <20241106201758.428310-1-ankur.a.arora@oracle.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: MW4PR03CA0133.namprd03.prod.outlook.com (2603:10b6:303:8c::18) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|LV3PR10MB8107:EE_ X-MS-Office365-Filtering-Correlation-Id: ec0cdb4f-518c-4f6a-125e-08dcfea02995 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sbt9fhm+pGiXEdvU/VwMLOQT2KZWFW0S/E5pILCqvsbfJSkgknrhnIWZ5Saj?= =?us-ascii?Q?adnebLu5CHruhi8Yl8ph9k37gq9ZOUIcoATd4kYpEXeu+CSxBs5Dc+6vgNkU?= =?us-ascii?Q?NKJ7Q/+0UZLMpklrxEYuvNcXBKZiUL/8WOh8fZljxxHXErkZkRVJ0ySgMcms?= =?us-ascii?Q?b1NKVmUmikwuhiOkDMcV12XqV2DmPBOXIuWtWlniAkh2sSgu94fE+XZ9CcJt?= =?us-ascii?Q?gZY8y8WWYd8rheVULpUcSS5Kzuzg8ZYf3HhpCpnxCMCdp2sTcOFCrrGcnteq?= =?us-ascii?Q?n5Zxis/A8A9pMtPciJvjHxq3oGs7MRIuPSPL2Fy7OjA1Ed9OSbTuc00BGFZ8?= =?us-ascii?Q?heFgtkaFaztx0yRJkfJhna1n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pb2gNOG0vJd6fjnFK88kf1ewfMRdxGOYlMN7W1mJ1MkejqP0J0OIx2CySJs?= =?us-ascii?Q?n0g=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR10MB5409.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kpWErU4o0Lfbc011O9LQ6FlJ1MbfV8BH8ltiZXmGRxnZ5KKN467rTz472Vss?= =?us-ascii?Q?jggnGuPnPs7eKJGwpXeVZVIB6Arg94LLwPj3H6KdQuq65bwveV8+xraHS23/?= =?us-ascii?Q?beo4hIy7jp9jULsMh0DDnl3EkH4mf+9n3OFrOFYF+IWCYkKe2ARRG4xQ+uwg?= =?us-ascii?Q?75c2wjpPjsvnD40b6/LTegjjZhJozc6+tpWaXQCm44cOJ3aD+Rdu3vwTI/wT?= =?us-ascii?Q?B0GAm1QdNNLqrd+XKPlKrK1EExEqaIsyK5kjepCosD0wIJTQ12ndVy39CKfZ?= =?us-ascii?Q?TJ6ySqoOo3XaXLjGeKhrqgRsvDXw2tL1EsrwRLadH9hE2hCiC3bbdW3gGeCD?= =?us-ascii?Q?C8u1mreBiNO6e2O41+DG4fbZ0O2nWeSZg34orCRHYODNw9nNqFUX+N1s9f46?= =?us-ascii?Q?6ME6yjsiLbG/7S7B2pZ+brNTA6iVTV+vifTpIFoLFNO3Z6f2kcCnBYfvx9Lc?= =?us-ascii?Q?s3Ohhm9onOBxdNP8bvqgFTrTjS8q8b3OA/ewmH2/N64vuKAZ0USwThuIRP4w?= =?us-ascii?Q?9o5jpM77fPV9aPxZrPFEVGstkcd89qQwDwEZfCyqHGX2mg0De6Nwkg9cWqB5?= =?us-ascii?Q?UFSOD6e8oytflaHEykXpOV4AjOc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nAKBhbTrxJ2yWhj5sYO47vpj36UuEqoO/7xCQXdj+24Yl2jhEub5n0BL4xE?= =?us-ascii?Q?pEQBPEVUFgdNSk1e3uix2//VU4KNRYXNWjqK4KJCWvmd4zWEM4TUZGlTKARN?= =?us-ascii?Q?Hg=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 1OnWK+ZO/mEZO+sQQHcrMJIYy1zz6ZhjnKo1mdF/j5r+ZyhA5LMDjZ/oDP9EceS2QXOXJTkcCqNEkOcq+ZIZxnJm996SgJLhIfGso7UILlLGpd2TlA0MHUalgzIRSEPloqPSJ4PIgTjmVzJbpaK9xTPLMvrlekZjAAn9EzWTbuvlFADB870TT643XUA+00vt6d2zrsIPaVZI9F5jD52hV7AjXf4lcO9JRPsoCsaomsk8T7/r6UOdT9DkcQzvtmxLML4YlBL00F7v/6PFWKHX7tOt1gphoU9zjNXwQp3VFa1BEkAVJWUVPktscix9+XVkc7ltZQWOp8t29D/K80sKhL8DG5m/7yP9f0NeBwrKRO66fgXiVjVZA7vXhO67XRw8r8ZwtumBIKQ/DyQUXszfqjNIhLj3y2/RclHls8XATSaMHa2yRuGZog7J79//AWT1JxPE9M+bTaY9yK1qU6fvmBF9Oxjit7iD9T2EIkWOmk21zAqcYJ5QDniHI/JLbgEuTL1O7Fjo3rYQhv/JQ964LTEDv7prTGmTN6N4Tui2s+eNdLVRTmlIftpWXIe/Gw1ADVJejOg9l7WptRiAGHjuj3azTh/4vGT6hOel1Zk84h0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec0cdb4f-518c-4f6a-125e-08dcfea02995 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 20:18:22.7441 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9BfG25JY+rlCWOw39Ak3lqaBkgq0YJjpFNipikNX9OX4qe3O9FyU8M5kLXj6Dd8ELGX5hOERpJoAMK3wKTBEQMFhlTl6Y/y3a7eie5CfXfU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB8107 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_13,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 bulkscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411060155 X-Proofpoint-GUID: QlJjsT9vIGyqWP2VpxVeZ0c0bSQfQiqR X-Proofpoint-ORIG-GUID: QlJjsT9vIGyqWP2VpxVeZ0c0bSQfQiqR Content-Type: text/plain; charset="utf-8" Add support for warning if the TIF_NEED_RESCHED_LAZY bit is set without rescheduling for more than the latency_warn_ms period. Cc: Ingo Molnar Cc: Peter Ziljstra Cc: Juri Lelli Cc: Vincent Guittot Signed-off-by: Ankur Arora --- kernel/sched/core.c | 3 ++- kernel/sched/debug.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 5c47d70f4204..077ea42a17f1 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5579,7 +5579,8 @@ static u64 cpu_resched_latency(struct rq *rq) if (sysctl_resched_latency_warn_once && warned_once) return 0; =20 - if (!need_resched() || !latency_warn_ms) + if ((!need_resched() && !tif_test_bit(TIF_NEED_RESCHED_LAZY)) || + !latency_warn_ms) return 0; =20 if (system_state =3D=3D SYSTEM_BOOTING) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index a48b2a701ec2..6c1a5305a1b3 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -1293,9 +1293,12 @@ void proc_sched_set_task(struct task_struct *p) void resched_latency_warn(int cpu, u64 latency) { static DEFINE_RATELIMIT_STATE(latency_check_ratelimit, 60 * 60 * HZ, 1); + char *nr; + + nr =3D tif_need_resched() ? "need_resched" : "need_resched_lazy"; =20 WARN(__ratelimit(&latency_check_ratelimit), - "sched: CPU %d need_resched set for > %llu ns (%d ticks) " + "sched: CPU %d %s set for > %llu ns (%d ticks) " "without schedule\n", - cpu, latency, cpu_rq(cpu)->ticks_without_resched); + cpu, nr, latency, cpu_rq(cpu)->ticks_without_resched); } --=20 2.43.5