From patchwork Wed Aug 30 18:49:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Arora X-Patchwork-Id: 13370635 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D47E8C83F17 for ; Wed, 30 Aug 2023 18:50:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1A2F844017E; Wed, 30 Aug 2023 14:50:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 12E62440178; Wed, 30 Aug 2023 14:50:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFD5044017E; Wed, 30 Aug 2023 14:50:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C7378440178 for ; Wed, 30 Aug 2023 14:50:47 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 86504140385 for ; Wed, 30 Aug 2023 18:50:47 +0000 (UTC) X-FDA: 81181662534.19.35E0B6B Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf16.hostedemail.com (Postfix) with ESMTP id 259E5180024 for ; Wed, 30 Aug 2023 18:50:43 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=gaOyPPuh; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jkal+VWN; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1693421444; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Rgf7D4Qv7h/ZhjnYoNWuL0UL8IKa0QgHu+CezcwKZIQ=; b=tAs00kPwUg8MHXcRU9xF1E+UorG8HPWdhiXPKRUa/RkjnGnu6zpMxmaaYG4jCl5MkhY2JJ Omorjnxbueuca2DBqLx6Iab7/8ckoLspgLOOyXU4CMgQ2xZOP1Nvl9o+6qjCFw2MYLEFjh pZXRF8AxJBu0q0x9EuJsYzm/Geqpckk= ARC-Authentication-Results: i=2; imf16.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=gaOyPPuh; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=jkal+VWN; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf16.hostedemail.com: domain of ankur.a.arora@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=ankur.a.arora@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1693421444; a=rsa-sha256; cv=pass; b=rV7rdYwBHAtdLvWDQxQENLqAKG1J5OHq/5h5XH1IRGXRJNJS5RZ20l3GjZpq49h2hTVWne 9zMlQi4DX1ASEvcOeL8bRqbCG9cYEajO0uz51ok7XiuB5sPSRb+NIKBx6XzMQjyJGAVnxi H01FSbpkk7MJjmOr24pqGgrGXi1pExE= Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37UInXRZ032362; Wed, 30 Aug 2023 18:50:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=Rgf7D4Qv7h/ZhjnYoNWuL0UL8IKa0QgHu+CezcwKZIQ=; b=gaOyPPuh5Id9LbMf+b/4Hp+ZJ3KfRwRQqR7h/P7/6Aw8rLoM529ZJs0gr+hMQnFgtB03 GWd4FESILOaIpEx4q55qjoM8kwVrmO8eH0UtqlenXSDsHBhdJq5D1MurhiDRdeuZ5ahq +p0ji8QwDb1SCUGp/ieWGDmrPNO65/TD7BRhG14E9MPsafI5PoBZee7AC8iMte+wL6S8 7bqluobe26FHcXkCf+60itDIB4nnoZ0uYlSE9OJrrsaTkvDGeU3OvIgjQbtxIIKavzUV MEnwtBy5qjPGQSsvHD3b7sdjY0xY5s1x2EHmzmb/c8cI/UGwXCcEG6/y+HPPi4zrEEZ1 Hg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3sq9k686c4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Aug 2023 18:50:32 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37UIFApZ032865; Wed, 30 Aug 2023 18:50:31 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3sr6dqehx1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Aug 2023 18:50:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gHfPsuzo1xpmPOjKpCDP1E1nwy8IG6ne/9OMT+idhGRt5DETdXmshkbAjQALZnMUOga/upkt5fXV9gRDKJLyjVyqRt2dYD8Nm9hY+Yt74ytsbY7eeHPhMtzTQQl7C68rH1hj3EU2igMig9ZSbykfYb0Nm3pflYTCXdrLCcOJj2MRJoItg4BhNhCs9mmZe+fLo4eDo12e7j0Zwx0UEx1XfwqPhI/IFI6wSGdegkUYaq4d2zz7UZ8U32ukjFkqkTQTL9AsbERu+G208HFCKKyEc9jn5gQ3fDVrcGS9BP0E7uWtEXivKdXMjefyjmF4+a+BriDIGHIgro+EtcuayDLOzQ== 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=Rgf7D4Qv7h/ZhjnYoNWuL0UL8IKa0QgHu+CezcwKZIQ=; b=bXQGnROMD0XnmQU1cnv/5kTsBxy6m+CKzuomgSmOFtBfvAGJiBzzZ95y6AsgwhSNp3DakwTvDd9oy3AuA+ZHxXPeO3nvt0JwsaE/SsHKqFYeRl8P29PHiaO6YdPyAJEH6E8YtantJmypSmwX3JpkYiv+SKADKJuCa6egRd9N8kPX4iFNNEH3ELF+cbkClhW/K1E6fCZomZ/e+vyoLfFNEfM5SiUvoosX2Bg3HqNchz5XR/UEbKt+W51If1nymK0IU/ubmxqyZf9VKMOU3oerf8f3FxSRTG/KGtxAcW6+e1LvXVUWdFI+wT4Pg+tAz/owdG9xwhe/dQwe8yYXPPkpFg== 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=Rgf7D4Qv7h/ZhjnYoNWuL0UL8IKa0QgHu+CezcwKZIQ=; b=jkal+VWNR2kayRhoqHqwCWQTrJ2fj91kcWqdN+jH2qPIrKD9CvHUatIvHJrnaqgWyV3dsnrXWaHzw/Sp1zrwEHuiEVaJUqeC2g+hHPokCMVxOuGTUpsVBXCccFZADxB1LJo77YvsXX1ABpmp8zjSf3c6mTX0KrQc/md+wsiFDf8= Received: from CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) by CYXPR10MB7897.namprd10.prod.outlook.com (2603:10b6:930:da::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.20; Wed, 30 Aug 2023 18:50:29 +0000 Received: from CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::238e:5e86:cbd0:7415]) by CO6PR10MB5409.namprd10.prod.outlook.com ([fe80::238e:5e86:cbd0:7415%4]) with mapi id 15.20.6699.035; Wed, 30 Aug 2023 18:50:29 +0000 From: Ankur Arora To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org Cc: 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, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, jon.grimm@amd.com, bharata@amd.com, raghavendra.kt@amd.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, Ankur Arora Subject: [PATCH v2 9/9] x86/clear_huge_page: make clear_contig_region() preemptible Date: Wed, 30 Aug 2023 11:49:58 -0700 Message-Id: <20230830184958.2333078-10-ankur.a.arora@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230830184958.2333078-1-ankur.a.arora@oracle.com> References: <20230830184958.2333078-1-ankur.a.arora@oracle.com> X-ClientProxiedBy: MW4PR04CA0087.namprd04.prod.outlook.com (2603:10b6:303:6b::32) To CO6PR10MB5409.namprd10.prod.outlook.com (2603:10b6:5:357::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR10MB5409:EE_|CYXPR10MB7897:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e2b1122-bff9-4520-d771-08dba989faf7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7bpP11w80OK83GggkGbTm7S6+CWSMxPJNVAUisHDmCpSS5g47M/4O/0jnSETpPhFXf2pnkeZXZaU/muO9JkG1KqsGCaYzULaeFodt+2zKQGPM0pYFXwcrzP08HC73al74VPevPBSvRVALIgnX8waaKEyHu3kSJSSUhPz5dmUawVWP4ma7Xu+k+zWmVTCKHOKbPTJuos+7sn5ZQQbn2GC09FVozqzGApBxLHZCeLZ31Xsr14FUEzuzuLF3jmUwPqXN/DaDfvL7Lc3+orZH2BwFpC2xb3PyWlRbIKS61196ioHIk4SEfaMkrtXV1ewpjmwTcW9MxAgTiIlGmisK2vx9/skWgtwea3AeHCXeehGubqoM8Zl3MfzBHW2zrcc/Q+QF7giMq1BrzyJT9jpWJUMOU9Jhk7hNbO1JvaKQ2HNszy0x/u2O/RmboQL1TRltD06LuaDO++q+QPF9VuNIPV6WG08+1R5mFyEYmaDoHKgGJTCzwLHvn8DS3/P2f/p38LWoWl2nIyG7ivbYeArtEiJG8iJrx/sTPZlrfX0Vt82cyZow91l8JqyjF4Krn1zVcy9+wO7ldAjYhzEJh9KAzQ+W6Uvfuuh6B17Ouw233g19u8= 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)(346002)(39860400002)(376002)(396003)(136003)(366004)(451199024)(186009)(1800799009)(478600001)(38100700002)(26005)(1076003)(36756003)(66946007)(41300700001)(6512007)(2616005)(107886003)(66476007)(66556008)(6486002)(6506007)(316002)(6666004)(7416002)(5660300002)(4744005)(4326008)(8676002)(103116003)(8936002)(86362001)(2906002)(14583001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FA5hLm6enP0ZjokfOmXztjNjgTQCoopSfhfpFsicJlayeGXgYFjRx213wwN05hb90B0dAvYFFvD22GrhejjVODcOdmQjv9CN87uKeDAqUvTb3Itn5HQDALOtOuF18YYjoU6o7cy+YLU/j/pEs5/waFwGqfUPBIvvM5+BeOkkpHijvMP+NyWIuCL4bXx0oLWVS7vQaaExO+XjpNhJuT/QigFfWwUKXin0cwmIUhUgJODP8W2uVQKljqS0uEAiJ+F/x2eoXLup+++fcn54iSBBz7zieyU3fUkhykvec6e3Bw21zcjSfKDos/JXEY98AvwDbDPG6GgOK51oO2cFigk8MUc7DE9Hc9lvuq9hNhCny4Qbovv2jzUoB5badqhD48VIv7UxP+YN+qHTtoLfW/gDn33jRNRxSvafisuHbM9ZKa5sz2XeYrUZZpy9sekmNtbpsy+3uZmxvcqnAp3xnxVqKc87TvHaOyf9a7yzhYlhR1OPuXOjjmyIo4Yl61laWxHwxGUkfkkdmjdDPJAkEOLKQZV8BWXCcqZIxxjTO1LCaa9CAyi9jW6tf9luXiTqYv7c9MX3R7zZwdaB62GGUQB7seANmx8kbMiV0MVhMV0XdP1m1KIDjWvdpaYjSZj3p7y3l5cbydK4NVwEGZ5y7Uo04QQPbdJaigBh7v9/VDw3fvgUkdxw4TM8SnAV0SWBO5Shc3CwZajDIV/704GP37yC5oNGFPxFmo/V3Kjh2udCC+KGWEDapT/6w1PE0Pn5htfGKY8lASP2g9+x1QrABCjB8zVIXy05F7DHSyQV/gXPJnLLNRQuTaPl8no4jB4jzu3PoyxnMFGcDyjIQ1915HkIYKb0SJ8kvSb5EOCyGZcqL7h9ZPxrEaNH/A685ljSD2RWMjjsTDtYkYjhq+sNkDFYdaEgvkkj0XysjN53cBLIbj8pcsVOQxq3wYgBFIoicvTT7VVzHwzQV+XdYNTFUyrMo7TW37xTT9zciccV0XCV30Fqhv5KOPnhl14qPVTqRBC+Kp8FuE821wxKKTizes18wlAQyu1TxaJL9r4j+d5kNz4tWyNjiPc+9UDtv/Jtt9g7g6SiROLQR21Y+yP0PUQfeAgtUgv+CuQm07ceOdor5SkAnQkqp3vxrzvD1TMcbc9zwO1AJEz/OU9Z4qoYxJkG4VaYK9Yp3ooDBckp+qssys7qUdDZTkW7RUNP1pgm++H5JS1EknHyHGOPgB+tZYMaquvpGcDZJeEvtiZUgisvSLHQLX7L9lDsUoX4gZDVebbMnFLcaekj52G+YSj2Z7gbTpxY6K8zIMAJw40na/HLnO3sknMeSvZMiIdx1RpUL7hB2C/Tbvf1W0rD6HJ7WqvRBnKgY+5vBTGeWLGWY8oUlpteORzGIBAIlbumVkxNrUVaHRhRW/KNV9prRwwbET48+xN2E5dcIteNndHJTjzKgKOhtvAxgq+reayMd046YrbGh6103euaq5LQSaa9PxHjgxtP/3sxI7EjLNRcSX23+uQStuWzWVPZK5H9qQ/gLlPNNRM4aej9ES6vH0UBbXJALt/UIg+l9qoG8tftAH52yHXNtb7p4HmQ1Ml2+GRRlsx/DCTuV81yWo+DZknDas+2ag== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: HUbLtWDhK/62UC72yeOCUMOcxTVvssqJHALfhyWho9VVzaNJIJtsnG38tTqZ0lN33urtioUO2+yYI0bs9cVy8lirRofDJ145eahdYkCeDaOsam3fYkgKA7UgW4xO0AZvAbTwSgCQu05qYVUcl892Q/eiSPupMw1KeDkKj5oWwTb1lejNij878SaCF6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-Exchange-CrossTenant-AuthSource: CO6PR10MB5409.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2023 18:50:29.2182 (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: c1jpT9NX6HKUIXnsCA+J4aa6hsaL19SCYYKBxDawvmAJXp3LITvyxtrC1sGQ1e9O92LGGqEm98mhQnhUbqFKRycem7irCnZB1bNUmbV9g2g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR10MB7897 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-30_15,2023-08-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308300170 X-Proofpoint-GUID: fevrx8sv2rJAwQDtN66tvTm5CqoXCAqk X-Proofpoint-ORIG-GUID: fevrx8sv2rJAwQDtN66tvTm5CqoXCAqk X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 259E5180024 X-Stat-Signature: my4sss5h7mbn6wz6ts6kkgqjm4xm3kwb X-HE-Tag: 1693421443-150544 X-HE-Meta: U2FsdGVkX1+qhgEqudw9POVqJPqWMv31lmywvHZucvCQlmLgjaj/4DrKnoXjcuSiyouAcMPPPGFHsz3AX+ib8E6Mus2LYkhx1yes7FKP/rtnQHrBVdikXW7vJmXU51sUtSRpalBpj8guA8LjPM3wwxSgn2LO+lxpGK0PxwGQklrBgeYiEmhbxVLnMUd1+o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FM2pkFfF4wuoD8Qv3HSKeEWTf0/sBIDxK6ab6k3+GEskqn8BnHXrWzjI15TqjC8hnFtETUEeD9RM/GzyrqsOIf/TZSjvibyxyvpYTkcnIsm1qX2LIX6PZyk9GoXhccRg8MwhS6dvw9I6J57G62k4pr/bNUH/u2rYnAn5NUyDcTpTisSDU3tBcW6RBfFAuLD+quIBltV0MqYv2CQFEwwOVCpRO6s8ws1UFUjAdkQrf4ijY9Uk1LlOzkuO+Yl7BD8w7xAYrjWoK9v6Cbgi8R26dS1JWSyIqwD1FxNdmzHhRifLE//EX9gy X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: clear_contig_region() can be used for clearing regions as large as a gigantic page. Allow preemption in irqentry_exit to make sure we don't hold on to the CPU for an arbitrarily long period. Signed-off-by: Ankur Arora --- arch/x86/mm/hugetlbpage.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c index 0b9f7a6dad93..55d1d15ea618 100644 --- a/arch/x86/mm/hugetlbpage.c +++ b/arch/x86/mm/hugetlbpage.c @@ -152,7 +152,12 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr, #ifndef CONFIG_HIGHMEM static void clear_contig_region(struct page *page, unsigned int npages) { + /* + * We might be clearing a large region. Allow rescheduling. + */ + allow_resched(); clear_pages(page_address(page), npages); + disallow_resched(); } /*