Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp10886rda; Fri, 20 Oct 2023 18:07:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfNVi75Y94XZkCJ9R8fnqsZQ9diyZcXHnrjegXqaJWpAVPwRNWIYCjuZGH9fxz5ISd1B/J X-Received: by 2002:a17:90b:4f42:b0:27c:f8d4:a4ca with SMTP id pj2-20020a17090b4f4200b0027cf8d4a4camr3240044pjb.44.1697850460335; Fri, 20 Oct 2023 18:07:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697850460; cv=pass; d=google.com; s=arc-20160816; b=lRfe8XXIA89K5nlnEVhhyWn+26izGbB2EQFY7s9TGEsgpThBJHAxvp+vtTTHwNE100 sGHn5uKa5zs+pcQgDDeLhTwTV4DM882/xZUehXL5aaHfHEAoooQi4dS8LGVxWfV1BeT5 C9XLu41DcwuI2ydyy5OsO1K6MRs+jcTX+qlJk5Y/y6tPebqW3x/dnyViGZk9WgJzwCCi Lu9NYSAl98O0/EqpZAW5+VA/ZpxBkGLUz7vPTPTZEMdpFjHdcfmWMZOOyowBkxD7fsfi cuSVt45GOQlLjqOZxujKwJAIhaiJBs7l9s7sEEDwaJ95VNQZ2gp9ywD30fE/Lc3GXdAx p36Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:in-reply-to:subject :cc:to:from:user-agent:references:dkim-signature:dkim-signature; bh=QKAZMD4BN/RfhE+GJKy2pleCZLpCrS0gwPrjpnbIDek=; fh=EN10UhorulwYR+ZezEAPnzR32q+1zJfydC5EdeWNJU0=; b=m4i1qK8HrGblLrVRWWC7UQ/A2BogIB7iV67I4JcMP4f2LLI+L6WxRkSFPr1UUQ5mCJ ORveHp9oA7t40hg6fXHWUH540qFLcVoBTiAINIpdk0aDrxb17ZBXYM2ySvLleksYAOja kVMs9Q+vbghll2IsVwaO4K9q9T6TtV4eQqT2oLnrJFeEVBtp/5d+pR7ekXMaFWdotq/S STNY6Kj6ibl3PmOn/Q6ryHNs8X7bxHYWNVCNljkfFQzKcaE+pqJBDatLzjKLq4PzfACM LCBkuF5L+WUSdrjixMQapf9mGTNw6FdL97ZlV0cWBNMQCmlTwDUV+iYkMur3hgprB/FP DKKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="KdbOcV2/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="ci5js/Y2"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y15-20020a17090a600f00b00277387bc11dsi2770612pji.188.2023.10.20.18.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 18:07:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="KdbOcV2/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="ci5js/Y2"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 9DBC581E142C; Fri, 20 Oct 2023 18:06:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbjJUBGe (ORCPT + 99 others); Fri, 20 Oct 2023 21:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjJUBGc (ORCPT ); Fri, 20 Oct 2023 21:06:32 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 805CFD45 for ; Fri, 20 Oct 2023 18:06:30 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39L0Kq4K001778; Sat, 21 Oct 2023 01:05:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=references : from : to : cc : subject : in-reply-to : date : message-id : content-type : mime-version; s=corp-2023-03-30; bh=QKAZMD4BN/RfhE+GJKy2pleCZLpCrS0gwPrjpnbIDek=; b=KdbOcV2/wFbTm/uabdfPb5/MlaoLpXnfjbY4Kc3H0fBXdk7ka10vpb+E4+UkBaNHcLmD TUoWXZJgr3tTzvAUiVRTnlbBA5AtFLyfHaZP3Q1yCU15DwPMIgpDU4ByUiYUWCW6v1Lw bw4yaVZ7UdCzkTZJoj5vqYjl23kpVU6RtX2QeJapGqJZ87+g92mFRB1+nsP5+vAHRPm2 IUwDqHsINwJd/sC00trF1unQTjyzsvLA1/ZINGI0UZCn9uCIn0hVhgUBSZGVDDlPY2k2 Firf/snn7dhvdRPN+RI81R4EcJ7SJz1ZoMxPHu/0jleVF7r6/XmIoEx3ABXS6+s7lraE eA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tubwdaxau-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 21 Oct 2023 01:05:29 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39L0wmlI012697; Sat, 21 Oct 2023 01:05:28 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tubw6pfxf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 21 Oct 2023 01:05:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GuIFUWE/4CEGulXiaajXpFs/oPHR1ej+vYeg4Ju+mfvvpeyGQUL/Y+zOWqrhVr0JSz/YTHjaCzSj0BeeiRQ5MYeT4YYjI0hlKg54ECTVily/QTNhijb3W5Btfj4ukwFXyhcbhdjoPGVxy5axG7uzp1nnnGM7DLxQRTHBNoVlnQB9FDhUaHCv7Umvw6hOxsujBHq4AxPSDUD8c0TOFZg+22RHC98Z5amQWCZ61EiDnRS+J6YDVwrLs0+0npAtjmeuX22Um7C7dBcb5r9dwOcaGiKU6cyLvGBMGDeKSE0mCvF1NLbdtGdVKI7ykpxCpDKBvwJOnf7j7dlOCADgDWuGvg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QKAZMD4BN/RfhE+GJKy2pleCZLpCrS0gwPrjpnbIDek=; b=XXzEtYuXTzGNhEU6ONx/4Px2Pz20rjLcHvtWgm1fkVSi+tuE3L0uIvBs7YuI7Oqn+BOF40aPAAQd3o1uthcrCWphVdd0hXiyxeN2DfnSTJbNBzUtXzWm/1lTjK0unXAkHxom5lJz2+of4a2rZk+NTE7wTh1vvqEZKFI15TzDhdsO465J/Gq4cYZBNbynpYzZ5PHHkOD5Qupdl15y87qBHUPfIFPmx9F1NAvS1LXnrQccUSE/4zNZsza7DoayK8BseYipKZY97JhJG+BR4wCP8HeZqNYD4f0RdwEPVy58VNGHWtjny0YLH8QFkXuoD8s7B73arUglZzpBE3Wk0f0W2w== 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=QKAZMD4BN/RfhE+GJKy2pleCZLpCrS0gwPrjpnbIDek=; b=ci5js/Y2Z2TaUghn+TNpVezPMihJZkKksbsVIw0UI7gEfLdJHpWHNARFj3r2bP5xJJ3/C55HBfbuV8EBv+bXIKAYArOX1UEI2ChbBSg/L+vmL9yDBCaaZhjLO2RZB+378uf88yKuFoTswrQRE4y/0lMVfHQNfFOOGql5vaDI7FM= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by DM4PR10MB6766.namprd10.prod.outlook.com (2603:10b6:8:10e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Sat, 21 Oct 2023 01:05:26 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::4f38:c0c1:ac6d:f024]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::4f38:c0c1:ac6d:f024%4]) with mapi id 15.20.6907.025; Sat, 21 Oct 2023 01:05:25 +0000 References: <87ttrngmq0.ffs@tglx> <87jzshhexi.ffs@tglx> <87pm1c3wbn.ffs@tglx> <61bb51f7-99ed-45bf-8c3e-f1d65137c894@paulmck-laptop> <8734y74g34.ffs@tglx> <4c7d06b9-8f5b-43ff-a2d6-86f54116da52@paulmck-laptop> <878r7wlx7d.fsf@oracle.com> User-agent: mu4e 1.4.10; emacs 27.2 From: Ankur Arora To: paulmck@kernel.org Cc: Ankur Arora , Thomas Gleixner , Linus Torvalds , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, akpm@linux-foundation.org, luto@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, willy@infradead.org, mgorman@suse.de, rostedt@goodmis.org, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, jgross@suse.com, andrew.cooper3@citrix.com, Frederic Weisbecker Subject: Re: [PATCH v2 7/9] sched: define TIF_ALLOW_RESCHED In-reply-to: Date: Fri, 20 Oct 2023 18:05:21 -0700 Message-ID: <87r0loiy3y.fsf@oracle.com> Content-Type: text/plain X-ClientProxiedBy: BYAPR07CA0060.namprd07.prod.outlook.com (2603:10b6:a03:60::37) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|DM4PR10MB6766:EE_ X-MS-Office365-Filtering-Correlation-Id: f204b90c-8668-4310-65e1-08dbd1d1ce85 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6chZPYL9Th3x6Zzto8DZNXCCqCsAj9mzg1yvmmJOBivxrKMAey0KqSuz6T6XPEQ+fWslXlavJGPjepstHrdYdVSj7hWAS2eURiSnWkzLX8Ueo1fgrg/uybRUjOxnQpJ+S3KcECc29wSbDn1EB3V3vPARlMtPNnY2VbHUDCKWBJkSvdfDbzVeY+sw0MLkH64WxY3sQvu8R2b1mVgX//i7brch3H/VLVT2Hwb7WRyQrvPzt1kfuHUuJ4JzA7sEQ4baNOgzfvVvf44mSPg4xYERaPw4WE0byV3Bm6NnMAvEfRhUuvTSBxtHUN0mXWPPNgXmmF2tCixgeUK6c4UonMcS78MP24fMBM/U+vn4NOgxdrJcjj7gOkohxzuKrgH/F/9I8OZgPyTr1rkjSTS4ePVbFwmYJpkVxec6zDjCTbdyY5gGmTuzyy8wdLwnTnCkuqHIlINbmFrHKQ5LfZsFFmcLNPurawGep4VpbggetU3FeT6ZjS6X4IHxmGRzfXj0brSEKxfpiM5scxzXb31X8j/rdCeYxNLXg7RJIxtWILtccKMYtwN+j1h9axMQcVRo9iaovRKkKZPwBLZvyCu7KL29CePNWKSSpzzWO+CAkJp5kHk= 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:(13230031)(396003)(39860400002)(376002)(366004)(136003)(346002)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(86362001)(4326008)(38100700002)(2906002)(7416002)(5660300002)(26005)(2616005)(8676002)(41300700001)(8936002)(6486002)(6506007)(316002)(6916009)(6512007)(478600001)(6666004)(66476007)(54906003)(66946007)(66556008)(83380400001)(36756003)(21314003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?bAlOcd1N6KFraUvQx/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us-ascii?Q?71d/v0+I6sghrY0x31lrvOgkKhOpOmmhOUVndDXYd8Im6tP6kYhqxqVnQNKT?= =?us-ascii?Q?tEW5ntxZnTvuEgn3fa1n+SRZgY/J2/vja509goKjM2QJlfMZ2J19bmv1VuFz?= =?us-ascii?Q?231MEyN6uP6A3noZuPYD813iw0Rtih5vLmGR0KbCUCciA7+LVGzfiiHhXhf2?= =?us-ascii?Q?8/jvXFNBFwl4R04BsN+BCOHqzqBkN1fmbA2KtCL1gO6DBmXn0UsiKALoBh1o?= =?us-ascii?Q?Tqamnx3evSRjyifQILGFeg5jJOqyj/5XA8Txcf34VCpMsSHRctkSeH/3cOKA?= =?us-ascii?Q?B9RnIkoRXrrC6oZiNEdMSCxVzP9LPpdm7jKN/eqEiRmixZxlT/MxS3NVk6bt?= =?us-ascii?Q?XfmXsJmmpez6TGLAZlqwsZgrBSrOsU1IMHaCEKkJWXQpWapTDyP5iIEP2OfA?= =?us-ascii?Q?GPp/EIHt8SolLLFelXa/uZKrS4wAtczSPvp0jIFwow8uqodrsbaAYwowf/s8?= =?us-ascii?Q?8E3EvakMG+IVB3L+hG5re92H3vvuEQod78r+wOl4de6Tbmxfj0m0SKaMb+vi?= =?us-ascii?Q?/goGmQcor4gPw7EmOkwcs1d2XZzsNniBig9JK87uSNIs1wvXOhJWRfTF71Y5?= =?us-ascii?Q?5+E+3e0JkVU98NB6gR2anB6t43tIId4Tn4W9UAmlxrH07yVDQPc37VFl2wVl?= =?us-ascii?Q?ufRdERjt+as0ws+P9K0I2BVgE7fAxo3o2Z310Run?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?RwbbyNKjEMw40GxnoJiX4Ul2zfNbWOnxFhZs/eHObaz27JAd3FAUjc5F0Hxo?= =?us-ascii?Q?JLmofJuYl513tnN92FIGuQro5+npQu9K0IkIZFUJqNPmBvAPKuJEi+Hi9gth?= =?us-ascii?Q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7pBPGv9J7JZjUcErrPzYCw?= =?us-ascii?Q?bwV6CGqni6Ldw2udk39M/A22RFrLEyUjYTC3ByWxqlxOV+nVTftBeclslo+X?= =?us-ascii?Q?BvCLjNa+T7rZaCCnJfDZMpf6YtCqiznG6PUAQzd5OdhjthbL/bmocMFmBFa7?= =?us-ascii?Q?TcLydXhZoxdQwahDL4CirSHXB7Ee3SZPS9uyvLzjUbY/ghbr+lvHGgpvkRvR?= =?us-ascii?Q?StGS/VyRFQMnMCjIo6RYsquago+xKouDw/sl7cypS10xTocdXXMaBpE1mGMC?= =?us-ascii?Q?AUXOePqCtrwnVoMhnF6a?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f204b90c-8668-4310-65e1-08dbd1d1ce85 X-MS-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2023 01:05:24.9290 (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: 2DRF3GpdOTAhBC8xUcjeQzNTWiBR+vKPVmnOnlUUIZVTtXnHAS//P/vxeya0Mja2oP6pj7bd/JxQ89tLHbuiY4pI7YOc6/p4CB0ixBiC8IE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6766 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-20_10,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310210007 X-Proofpoint-ORIG-GUID: HDcEAC1SfSy0InMMsSo4clLs9uOWXdd6 X-Proofpoint-GUID: HDcEAC1SfSy0InMMsSo4clLs9uOWXdd6 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 18:06:52 -0700 (PDT) Paul E. McKenney writes: > On Fri, Oct 20, 2023 at 03:56:38PM -0700, Ankur Arora wrote: >> >> Paul E. McKenney writes: >> >> > Thomas! >> > >> > On Thu, Oct 19, 2023 at 02:21:35AM +0200, Thomas Gleixner wrote: >> >> Paul! >> >> >> >> On Wed, Oct 18 2023 at 10:19, Paul E. McKenney wrote: >> >> > On Wed, Oct 18, 2023 at 03:16:12PM +0200, Thomas Gleixner wrote: >> >> >> On Tue, Oct 17 2023 at 18:03, Paul E. McKenney wrote: >> >> >> In the end there is no CONFIG_PREEMPT_XXX anymore. The only knob >> >> >> remaining would be CONFIG_PREEMPT_RT, which should be renamed to >> >> >> CONFIG_RT or such as it does not really change the preemption >> >> >> model itself. RT just reduces the preemption disabled sections with the >> >> >> lock conversions, forced interrupt threading and some more. >> >> > >> >> > Again, please, no. >> >> > >> >> > There are situations where we still need rcu_read_lock() and >> >> > rcu_read_unlock() to be preempt_disable() and preempt_enable(), >> >> > repectively. Those can be cases selected only by Kconfig option, not >> >> > available in kernels compiled with CONFIG_PREEMPT_DYNAMIC=y. >> >> >> >> Why are you so fixated on making everything hardcoded instead of making >> >> it a proper policy decision problem. See above. >> > >> > Because I am one of the people who will bear the consequences. >> > >> > In that same vein, why are you so opposed to continuing to provide >> > the ability to build a kernel with CONFIG_PREEMPT_RCU=n? This code >> > is already in place, is extremely well tested, and you need to handle >> > preempt_disable()/preeempt_enable() regions of code in any case. What is >> > the real problem here? >> [ snip ] >> As far as I can tell (which isn't all that far), TREE_RCU=y makes strictly >> stronger forward progress guarantees with respect to rcu readers (in >> that they can't be preempted.) > > TREE_RCU=y is absolutely required if you want a kernel to run on a system > with more than one CPU, and for that matter, if you want preemptible RCU, > even on a single-CPU system. > >> So, can PREEMPTION=y run with, say TREE_RCU=y? Or maybe I'm missing something >> obvious there. > > If you meant to ask about PREEMPTION and PREEMPT_RCU, in theory, you > can run any combination: Sorry, yes I did. Should have said "can PREEMPTION=y run with, (TREE_RCU=y, PREEMPT_RCU=n). > PREEMPTION && PREEMPT_RCU: This is what we use today for preemptible > kernels, so this works just fine (famous last words). > > PREEMPTION && !PREEMPT_RCU: A preemptible kernel with non-preemptible > RCU, so that rcu_read_lock() is preempt_disable() and > rcu_read_unlock() is preempt_enable(). This should just work, > except for the fact that cond_resched() disappears, which > stymies some of RCU's forward-progress mechanisms. And this > was the topic of our earlier discussion on this thread. The > fixes should not be too hard. > > Of course, this has not been either tested or used for at least > eight years, so there might be some bitrot. If so, I will of > course be happy to help fix it. > > > !PREEMPTION && PREEMPT_RCU: A non-preemptible kernel with preemptible > RCU. Although this particular combination of Kconfig > options has not been tested for at least eight years, giving > a kernel built with CONFIG_PREEMPT_DYNAMIC=y the preempt=none > kernel boot parameter gets you pretty close. Again, there is > likely to be some bitrot somewhere, but way fewer bits to rot > than for PREEMPTION && !PREEMPT_RCU. Outside of the current > CONFIG_PREEMPT_DYNAMIC=y case, I don't see the need for this > combination, but if there is a need and if it is broken, I will > be happy to help fix it. > > !PREEMPTION && !PREEMPT_RCU: A non-preemptible kernel with non-preemptible > RCU, which is what we use today for non-preemptible kernels built > with CONFIG_PREEMPT_DYNAMIC=n. So to repeat those famous last > works, this works just fine. > > Does that help, or am I missing the point of your question? It does indeed. What I was going for, is that this series (or, at least my adaptation of TGLX's PoC) wants to keep CONFIG_PREEMPTION in spirit, while doing away with it as a compile-time config option. That it does, as TGLX mentioned upthread, by moving all of the policy to the scheduler, which can be tuned by user-space (via sched-features.) So, my question was in response to this: >> > In that same vein, why are you so opposed to continuing to provide >> > the ability to build a kernel with CONFIG_PREEMPT_RCU=n? This code >> > is already in place, is extremely well tested, and you need to handle >> > preempt_disable()/preeempt_enable() regions of code in any case. What is >> > the real problem here? Based on your response the (PREEMPT_RCU=n, TREE_RCU=y) configuration seems to be eminently usable with this configuration. (Or maybe I'm missed the point of that discussion.) On a related note, I had started rcutorture on a (PREEMPTION=y, PREEMPT_RCU=n, TREE_RCU=y) kernel some hours ago. Nothing broken (yet!). -- ankur