Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp198115rwb; Thu, 18 Aug 2022 02:05:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Gsbt8/tBgtTEV9zEG6NXHSAn2E3+nTW81dUbRhJpJFJhXZ/T2AW8CwMkyzSNnOdzrz55o X-Received: by 2002:a17:902:7845:b0:16e:ea31:3354 with SMTP id e5-20020a170902784500b0016eea313354mr1844829pln.17.1660813533064; Thu, 18 Aug 2022 02:05:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660813533; cv=pass; d=google.com; s=arc-20160816; b=OQRlbm52h6aV7s/fPOJdvMu34A+jqZF0e+DCpiOg3asfWZTMzHNgLL/gCs/kJD5qh5 zeBstLX6iMKec8ujDBwuSX6YIq5KYGGo/44QoXrPcjjodxPMEiUCa2hLW7zunNjUeZVN kmbqIidPWYCYp22/oWGzAtZkOy21ePbUsrJtT54um2/D3tOzAxUnk3iO/v5UlSG7iPAP ZLICNvBzU5BlnO49CPLCJn7+YDMHX6bI1t1jcSe9y+hJ6m4e2dB0tqkCUydR1xezouwE aF+Nh13FGRGQ016QG7sFmYwTEgoPf6xSc/vkZ1c3/CuQj57vqZDggmnmQivy3m1thdOF Am+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=7uNFYomDdppnL/6V0eqpjY/FxKCElxBWEPre6/BSe1k=; b=ykwChxifUjCBuKDHFfTNo4krDTLnSLyMn9pr6YU07e3RZCBXY7Orl8bLYC0L7x/+3a ITED1wpfNe9Aiw/8BfqBugs4synvD1viYeo5ZusrNy4vNd+HYLhvQ0f4DFPxUvlj176Y GQ1afHCFrqfdzbt4M+YhZmMiu2QJDGfzS8xdl4F/7jnco1j3RjppGGO4pAfKG9Mm/nSN LhqBlUzKRKisUmWE8F1D4klVhvu9BJXkeTu1vEowkjkluK5sdDATYzjPsFkzit9MDPtV 7sz5ThBXup3ZqYbrQoKKKq2u4rH3NpZwbOaCocm57A2vBv5Xg2b8UelmriqIfzFYOBy9 8PPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=PiebNePL; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a38-20020a056a001d2600b0052e25aa19d0si1160090pfx.88.2022.08.18.02.05.20; Thu, 18 Aug 2022 02:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@prevas.dk header.s=selector1 header.b=PiebNePL; arc=pass (i=1 spf=pass spfdomain=prevas.dk dkim=pass dkdomain=prevas.dk dmarc=pass fromdomain=prevas.dk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=prevas.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243375AbiHRIzk (ORCPT + 99 others); Thu, 18 Aug 2022 04:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235263AbiHRIzi (ORCPT ); Thu, 18 Aug 2022 04:55:38 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2091.outbound.protection.outlook.com [40.107.20.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04E60B07E7 for ; Thu, 18 Aug 2022 01:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BeLYaV94jmVM3sJWUk5I5OeyzHhFA5bPvx0efD297s8CjqQvLPrsxFw3tdtE9tT5EZ/CiFi+3YC8Fm3bQjz7X8YPG/isX3Kp1qxR/4yn8jWb44STveqUrHYOZN/M1IcIP04zgEeoZ5x73kM2psFLIhcho4oida1WAvcoK/cZy4D8i0OzsnbbAyd5e8rwmssdg4Wc40VQ1mGvg1AsFj2AbHFUmAKZ0o8oKP7YajdZ9FZ1zXyN3ROMoFoq9j3tggye4A8J+rCyaX/yK4Eu5e5RtvJ1Qfl5lJirLDHoxxiytaUceoLQqEWk+6yPyPCJijcHkVcPgvw54IrhjUNcRbkUxA== 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=7uNFYomDdppnL/6V0eqpjY/FxKCElxBWEPre6/BSe1k=; b=D768es1XO2loo/GZn/1E+wDCMXckx0wvqGAqc+dNpgM7WHWfxv7JQUdbznA7ITh31SD2CXEk7oNS35ZAiO7gErMCaLn8uaUS3in8msAjBG/efvm+kwRz0/OwQ+vSwNk79hKxosTPrhr8/3/UsKOMtBPq8jXpwPScX+yofgLOHUM3et0XMR9wrZH+K76bIpvKHQzO4e/HM6EDud6ybGqpkjxYSmVTJfyjjEMWO4tdyklOON1ipOa1blPH+tknk8ZRaFnCIm7J07u9QF6mspika7/Fr2oJDK3UTKNi17NZVm/AAeBYoFotKeLNEFYcL4DtDSeMTeORcnJFvZXWCkOWJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7uNFYomDdppnL/6V0eqpjY/FxKCElxBWEPre6/BSe1k=; b=PiebNePLu8G2lroEsb7FYKit8SbfHziEaoFHEH2enwCjtbps9qh2eVBtK5DSBcowBz4A0SjvjxVXZ3J7d9cIxoAsOVUXOFzU9by8Rxfk1lcaJg0vF7rzj7iv5T5NZ3sBkfso80ZoKSej/9JAD339RQ128nDspL9jCyG8T9GPKUA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=prevas.dk; Received: from DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:34a::22) by AM6PR10MB3109.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:a2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.22; Thu, 18 Aug 2022 08:55:31 +0000 Received: from DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM ([fe80::84cd:fa2:ffc0:456e]) by DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM ([fe80::84cd:fa2:ffc0:456e%9]) with mapi id 15.20.5546.016; Thu, 18 Aug 2022 08:55:31 +0000 Message-ID: <54a68cad-f15d-bef2-8627-3d3bfb6f030d@prevas.dk> Date: Thu, 18 Aug 2022 10:55:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 7/9] mm/compaction: Get rid of RT ifdeffery Content-Language: en-US To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Peter Zijlstra , Steven Rostedt , Linus Torvalds , Matthew Wilcox , Andrew Morton , Nick Terrell , linux-mm@kvack.org References: <20220817162703.728679-1-bigeasy@linutronix.de> <20220817162703.728679-8-bigeasy@linutronix.de> From: Rasmus Villemoes In-Reply-To: <20220817162703.728679-8-bigeasy@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: GV3P280CA0020.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:b::32) To DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:34a::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 082080c4-6b2c-4c1c-bdcb-08da80f767c2 X-MS-TrafficTypeDiagnostic: AM6PR10MB3109:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: msfUnS4ePLqHarTgKBwyr1OK37/3AGDk8umCr4Haa7CJjuwZpgMQ/v4Ss8d+zx1q1u0kDsuHAa/shwKy1u3MbJB6yaS9TgBhA1gou4gThZbvMzrVR95k1UaTxBEhtzcEAlcbipfYzG+S4EvZKmT7V/SnN8iBGtKSGIy1zUPEWrI37STkdzRVUtcKMSI0Wu56sTIbbPEF4FgctVxZN0ZqSywvdsc9qxbUFJhaxkG/exkB+bLb9EoC3Rb7+giuAKdq6z0/1rieWvNIFwv66Dh4C9rzBEE/Qu5cUYngheRw5uMLvPC3xHMgzElp3ixjaBJAn5NvWLRLdDj/J4kZ8UJBApc21ZXEBc5QrOrCJTZGrEcW5zpsPcuPzTnYfDMJ0WXhbpNBSuE86SRk2SlUohjtzXiEmTe0yBy6/2FVrjv0KaRB1LFI2evTbSIeHuG+mxRDTlVWs4Fn9x9sTjsYqu1wUWVJ1fBvtah66NMF3PUaUinsUqG6WspenZWCFVZaVT0hwXrXND92zNF8/iXorG4JAmcpMHCDAb2jnuQSH46buWSFkqrvMbO6awItSQ2mp0CoL4pyIXVYcVj3FpyqkaaxVjVTuaEofGOmdCAX5avGC+gWd9GsJN82rSsZQWq/y8K7gpzCzThyGHYgHMd8EhufXZbCkeDPq889VAsBicbAeoZiR8YJXLd7eSlOlGH3Hs5f0r9ym+Dlwb6ZIYKt3z2AM2R1RSdP3r6rIRx9DWzQVPVfSMX3F8OAZngELUtjebnx1/746zmwGQO2qcosmMSidJKMWKxChWKBSWPneX0gW3BYhuP86ztO0XYTRWVwr78oFMdxFmX6gvojHBg1sNOnVs6xH2x4jERqDpDZ69hF5Uo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(376002)(346002)(136003)(396003)(366004)(39850400004)(6512007)(6666004)(36756003)(41300700001)(38100700002)(86362001)(316002)(44832011)(6506007)(2906002)(31696002)(31686004)(54906003)(38350700002)(66556008)(5660300002)(6486002)(7416002)(4326008)(8676002)(66946007)(478600001)(186003)(8976002)(8936002)(66476007)(2616005)(52116002)(26005)(26583001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OERJc0xXRXhFVmowd1VockZOMkNZUVI3VW85Tm03cHpvN1RaZC90SHlpK0ZP?= =?utf-8?B?cmFvaDNESUFxeGJRamxZSGZ4ZG9DZE1ETk9iYkNobThGYThqR29oNEpib2t6?= =?utf-8?B?ejAveVpFbldzZkxnWHlESWt2RHVmRWlJcWZOcW9KODYzWHFmVG5jSllnNjNU?= =?utf-8?B?bWx5dmtrbzY0bnE0aGpOdmY3UkJMNldKeDBUOWk1ZFZYUDR0ZHA3UllaYVRy?= =?utf-8?B?TUNIZVFDOEZnTkVHTEtiSzkwTmVSeUg5aEVMU092cGFoVzZISWlvZnljZ3pK?= =?utf-8?B?alJOZEw0VlhCMWp0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kV4c2FUVVZG?= =?utf-8?B?QllnaTJNb0NRL3dMQ2U1aWJpV1JYUEM0dER4MzZLdFVDcXhRT2Z5K04rREFF?= =?utf-8?B?SkE9PQ==?= X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 082080c4-6b2c-4c1c-bdcb-08da80f767c2 X-MS-Exchange-CrossTenant-AuthSource: DU0PR10MB5266.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2022 08:55:31.4483 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sIMFZfmh/IM8Rd1DDMuOqo6EE7nx/n5Ow547fw434ZCMgCcNcM0+k7Y6pgPb2+l8xicTyGspJHMO7LUtO8ak6j4cVV3qB46GEN/OGdlt5UM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR10MB3109 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/08/2022 18.27, Sebastian Andrzej Siewior wrote: > From: Thomas Gleixner > > Move the RT dependency for the initial value of > sysctl_compact_unevictable_allowed into Kconfig. > > > +config COMPACT_UNEVICTABLE_DEFAULT > + int > + default 0 if PREEMPT_RT > + default 1 > + > # > # support for free page reporting > config PAGE_REPORTING > diff --git a/mm/compaction.c b/mm/compaction.c > index 640fa76228dd9..10561cb1aaad9 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1727,11 +1727,7 @@ typedef enum { > * Allow userspace to control policy on scanning the unevictable LRU for > * compactable pages. > */ > -#ifdef CONFIG_PREEMPT_RT > -int sysctl_compact_unevictable_allowed __read_mostly = 0; > -#else > -int sysctl_compact_unevictable_allowed __read_mostly = 1; > -#endif > +int sysctl_compact_unevictable_allowed __read_mostly = CONFIG_COMPACT_UNEVICTABLE_DEFAULT; Why introduce a Kconfig symbol for this, and not just spell the initializer "IS_ENABLED(CONFIG_PREEMPT_RT) ? 0 : 1" or simply "!IS_ENABLED(CONFIG_PREEMPT_RT)"? And if you do keep it in Kconfig, shouldn't the symbol be "depends on COMPACTION" so it doesn't needlessly appear in .config when !CONFIG_COMPACTION. Rasmus