Message ID | 735ecdeef28a03b0e9114b2435e0ef7af7a73c66.1736221254.git-series.apopple@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 9578EE77199 for <linux-mm@archiver.kernel.org>; Tue, 7 Jan 2025 03:44:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2ED306B00A9; Mon, 6 Jan 2025 22:44:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 275506B00AA; Mon, 6 Jan 2025 22:44:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0A0F46B00AB; Mon, 6 Jan 2025 22:44:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DEC0A6B00A9 for <linux-mm@kvack.org>; Mon, 6 Jan 2025 22:44:37 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 95830140668 for <linux-mm@kvack.org>; Tue, 7 Jan 2025 03:44:37 +0000 (UTC) X-FDA: 82979263794.25.F5CD2DC Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2089.outbound.protection.outlook.com [40.107.212.89]) by imf03.hostedemail.com (Postfix) with ESMTP id CA4A720004 for <linux-mm@kvack.org>; Tue, 7 Jan 2025 03:44:34 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=ofXTc970; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf03.hostedemail.com: domain of apopple@nvidia.com designates 40.107.212.89 as permitted sender) smtp.mailfrom=apopple@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736221474; a=rsa-sha256; cv=pass; b=3gJhyq7SC6gynCZmLmbhrWFJdzIlf+2GLDg5YrBw0Z/fIGORXGc2Fq5GxkwkIuMLDwVQ4m W3bfg6kjRTfwkynT9NHiOptN3gXw7UWxd5G+KU3aulfyk0Ntp2It6mNJ97upuW0JYmHV5K uZ6cwOWzEi02Q/8/2H/RYxy0DNlKsvU= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=ofXTc970; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf03.hostedemail.com: domain of apopple@nvidia.com designates 40.107.212.89 as permitted sender) smtp.mailfrom=apopple@nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736221474; 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=vjp6m1j2W9OFBUPeqNP0AlhzXfJRFG5q0VazBoZoLDo=; b=vO4T2Ol2gZ/fR0RPKtOe+JyibJkENeY3AG/7qC3oC8clpOl3emtdfuTursAK/36zB5L0mX BfY8pFOqTApVEm4QdBICkX1q5Mzor4e6RxKpossQEq+gWZ7qDmu3qWVayI4YZJt04LCJIr dURJyka9YNJBMMqVaE9zWZ0x3t0TQDI= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bPybrIsxuOL88MeCTAuFNJ6lZPgVaywLHH/FPRRePXsp/SEwwixlasgL1ekpTdVCf74XB2GHm+rceDAiM58NYS9h1IlqA8Fx3QVoMufAki/GnLjVMjeNoAbnbPsDkgVdDTyrGnJ4JTPJglp0BL6IJ+Sdq38z/+KqVKh3XIdqDxVVk93Xn1O7U50jnoE8cZ2mgBc7Uv/UOzGak2byz+EH6L4LrAQLXd6vchOqDrSfj23Zcb79ExxMbHU/D8aYmwQL1ykujQ5kUnfVbAOyWoma1qIL3GxjIptwXlz8PHfUPQ+UCY7qJ28GlTuhgVZRmLExk6AYUA6AVa+sDWz5QnQPdg== 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=vjp6m1j2W9OFBUPeqNP0AlhzXfJRFG5q0VazBoZoLDo=; b=Deg6PZvJ0yo4KpYVo9l1cbfOEI06r/CC7okSFvM6ixTjn1HtBM+hhH7iMrv5ol+qCMIrLF9GK4QmAIBr2JnyIn5uNC83O2pVq53DfW04mpAj14TMiaQk09AIbf3Kb5V8n3d4KvxHN++1h39zcSsq4FNpekCcfpK28KttQsYVgXtQKBcTr1ZeH8GQAwx/bkS7wGp/WYD14XTJLNgu0MGtMhqoqP0GTgw3oxEQBgPB/0iiiAL5/HLMcflBNM2OCSjUNMOD6RRb1D0SJdHVX7puOmYU0hQ/+BCR4rXoh1SwzDWPfpJSKwBS5U/8nD9mr3SQ/q912nmzkmDYNcRfQ09iQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vjp6m1j2W9OFBUPeqNP0AlhzXfJRFG5q0VazBoZoLDo=; b=ofXTc970lvm2iDg36wWlSJWa/kU98VNR6IR7uHF6EUy6jEjUtAmFbDts70qcNvQ+2BvRTHwRP3rVbk538uz0YOgmLWi602+c1TV+20wUbB7rm8fudx5+d7Y4nZWwbPbMZENEFEWLiaO3CNiSM1ASzzNrtWXK8A8FZI+RD1gBH47AO9JmNvKupblYqa1QOIvPrIbSS3Kj7gGb+4Pfovb+aJVy325rggjnLiDt6T2+OgV/8HJqEmC54N5tZMpt7FGts0DFudBpDlEmJ0AOsp9TJKtM04eM2Vh+9hkyPLvWgMH8BG05c+6AfZncKxR66uy6k0qEpcBaJ/kHkD80JKSjkw== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by IA1PR12MB6113.namprd12.prod.outlook.com (2603:10b6:208:3eb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.17; Tue, 7 Jan 2025 03:44:28 +0000 Received: from DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe]) by DS0PR12MB7726.namprd12.prod.outlook.com ([fe80::953f:2f80:90c5:67fe%6]) with mapi id 15.20.8314.015; Tue, 7 Jan 2025 03:44:28 +0000 From: Alistair Popple <apopple@nvidia.com> To: akpm@linux-foundation.org, dan.j.williams@intel.com, linux-mm@kvack.org Cc: Alistair Popple <apopple@nvidia.com>, lina@asahilina.net, zhang.lyra@gmail.com, gerald.schaefer@linux.ibm.com, vishal.l.verma@intel.com, dave.jiang@intel.com, logang@deltatee.com, bhelgaas@google.com, jack@suse.cz, jgg@ziepe.ca, catalin.marinas@arm.com, will@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, dave.hansen@linux.intel.com, ira.weiny@intel.com, willy@infradead.org, djwong@kernel.org, tytso@mit.edu, linmiaohe@huawei.com, david@redhat.com, peterx@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, jhubbard@nvidia.com, hch@lst.de, david@fromorbit.com Subject: [PATCH v5 20/25] mm/mlock: Skip ZONE_DEVICE PMDs during mlock Date: Tue, 7 Jan 2025 14:42:36 +1100 Message-ID: <735ecdeef28a03b0e9114b2435e0ef7af7a73c66.1736221254.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <cover.425da7c4e76c2749d0ad1734f972b06114e02d52.1736221254.git-series.apopple@nvidia.com> References: <cover.425da7c4e76c2749d0ad1734f972b06114e02d52.1736221254.git-series.apopple@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SYAPR01CA0010.ausprd01.prod.outlook.com (2603:10c6:1::22) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|IA1PR12MB6113:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a196f6b-c868-46fc-3068-08dd2ecd961d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: gnXpYpFuy2ZTc8Vg5MB/kqYnLVrZln6jFJqUPm8J7qNoufIupACndwY0lkXOSfVtzeIwy5glLZ8VnUyxAHUpSEM7FQUOMXcebVmqiw8TRcyQbip9oPXelF6tYgRtE36PLJvVq2KIy1P6xJwor8yzpENSNLflDtDEeWToyE4QRu8stYnGnJKcFXdEdDmKjKBSWwzlSnv+aORQaGCyKuVOXBRBDG5x2nNyJ8RLiqLgrXCNu8WrHn6C3m9lvHbufuHWdrQbIt11DqbRGzcg5egY6PJdXxEQD5sbd0WmN5XuDXYQjgmt0r7vP46cPCW8jtJ5AgJOIieiC5L4nP6ot95gMFawdBT4yoiJ7iA2OTvF7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.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7726.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5NGLl4RTBtCQ4fsX9E3I5tdi/Z7Kg59K9JcInO0vO/Co0P6Q/SzDpQinbYdbOXpQYUd5SAhp1AAf3D/vsYroWJJpUbDcj7cvGRLMLpK1qI5DuOaY5gvSbOz573iNpwVwi/VD+0nqiHAnHgYxg9rd3kNKtNDRTJ3FeWIG6e6vmzNpyS6+pxsoyQwLoA9SO1aVkbt2Gw8MWxFAACqEpKuttkTkZXbSsIyUM36vVYzKjsFWHOT4APhatH6DKMvgJIpu+RdO190zyMIut+mkzxRHIeOYqMzCBx5QJvmQfxBUTYsiTf/ddaqF3o/vD3N6d/svqPjvZbBh1+/nJKG1LKSs05/Ec1ZxNZcbFlibYovC6P0ZyFjUpvn/OrzRSLjfn43EGxf8Da1BFplJMPdQqjSySeLvgbzwdWB5SjOVedS6NcB8XgSZVd3w8K+WwR9vZwSqVHEiKsKKXAU6r4bNUxz/6bpjEGvTmn4fKPE8WvWYuD+rKG2Yd4QlsG5urGmspsADdg8u3G8tLDPJ2oLDN9dKWNed6aACMVZPprn5Pl08MVPj9PXXmNTjGg1X+PrXkjCWaV1w+noWKOLjrZL3TMrtSgIJSDHsSJP3ZjwTDyuuC/nBCgFD8VPsQ5WJAefeucGteWje+rzbxZGZqqwFa3JouUesKvlSfVN/SyRnGhs4SyHFtKpDbM2wQwEPaK/UWXIsto3Uuw3y8oAPociB8Z5+FiX8bVsro9NCJKvEShNXz8dv7G1j26LKYsdr/4YucOEL2z9tHQher9EhBF2Gj2rHp7Mr666sAhIuv5KboRQFuZL/lsbMGbuYOAktCher8AYD3QMrHptliho4vUAJzg13TmROAy0XlEvXV+E6AWiRof7uGh1r0/CTp+H2mrmWLGchwlLGACh/ktmJ43gQAcobRQAijjYDnzIwiq0haCunL83dNDK96k3F4TJQaQLxw4lUkWIq27cK9t/yfOqyeC52qPcDK2Xs9RtmlGhyO0e4GLw22AP67TCTRoztc4yHdjdnMbTu4NU1N3ke46ThD19ckfGjlYkHl0Yu+HpzgKkVF+RDAPBngShN0YzJCrx0z+Z1K0El4OKaBpzv9WbqopDUAJ0hRQs+ZiboWvAAOvs30p1aco1pqlCKCGI4g5P5/Vw65ujg35UvuMC6++OxJRaoaRmota0+zP7X+BHb2xJuM07MCVJ+7vUqvefExHg8bZh0bOZr0hH/RUDY8uV1RTixDzOkzKZ2HWPZFy2SBI0PSgMYibi0IdvtF5ng8BEl2t/C95hC2r7nZgHQVAjHq1d6th4F99E8lqk77kP06eSpLydpNxo6rc5Fy5MxH9+B+fK6Mkn2gdee+B+yLTH11cvkYxjv7IWJM4q42RFGkL7waXbi2bip5x7bfDLpkDjOYfVA0m2vCrcgl1XGpJvjvxK6vavBuFCgSNbce5rSbR7MjM7ugLODLtcCYkVhhU32IFHfhsa1muIbAnzLpKQqvSNSBOFBYDbopRhK3MH7L+pzceR1jVuqVjL26CsqjvcIeJMhGzMQelAiRDeOg1prff4L8YJQsErSEuaD6jtFBzhabSUzZ+NuWOX/kWjSkAlH3nVb X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a196f6b-c868-46fc-3068-08dd2ecd961d X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB7726.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2025 03:44:27.9838 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ge8npubYQpIxEkHObRZ4nVWsc/pvk5jFciR5yplg4GsdBQvuefdakQJS8mdDYFgAEkQ0jsDTl8M8jqoBksd3lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6113 X-Stat-Signature: ntghkj9hhknmkdcrqpbpd6jjydwo947p X-Rspam-User: X-Rspamd-Queue-Id: CA4A720004 X-Rspamd-Server: rspam08 X-HE-Tag: 1736221474-175289 X-HE-Meta: U2FsdGVkX1//MfWLSjsuRWWtFTqeSt5T2j9NKTbkjmzc+xYMC4ayTPX5wQPcs2+JfaCALQr85xoC1MPRgXrdzYo7fHEhFGZSr6azu5gcuCgN8N5ArD1iMuaM2iZAZXgbt1IkyCyX9Itdp3wNFk6S+9Pip2TqfFSW5215LYfyBYJOQ1JPu8BL9U+Q6Ya7J3ge4YoLZ0HCUOnsDQg9qGC+3s6iMv5iJU5v+9e7DlcboNlvrnHJKg3naSda0fkXRWsLPdPOwMr6++x4UAXmDZoelHnXAv2q9ipULJ4mpWOTzKnqv3SpiHuhPQWf6Z82IVbEkxldY10gmqq8Kriihs/zDxdwBk4lvBS0CE5BTfAkYC4zANmmfsUTBlQ84Ow8XEK0yai3SgCodYEyF/O3AbSIC0EpDJqQWSAhBy8A7XX22paY7husBNXbdoThH55DDoYdzbNQvN+tww29ztUy9Ed9qHDzMbfuHG/ZoVvLxc6ePHlUonbde9/l3nG3zG3MnYxqi1j2ystPNZU5kN3fD6/vlyB/Mw9TtN3nQ+JiMGnN6PQU+Nwh5H/XsQYWsQ9mIUxrfQVnbjxfvb9byo4ybMdb2OYLNVSG9v+c+EodU0UMScW0HErqPN+vWAh4Ywi15gXHLbsbKgw1TuojH2bLm39U3bY9govphhC9V74Zvp6a++fG+NuL7B9BQDOvLszDLBBOsUGnpOUwUpHv3UAUi8Wsj8w9OO8JbZhwWxrTRt/M1UHoefVuauFReo023wkWfeYyimUMmjh7At+6EQZ8D0rEkHrk454VffPye5M/4OsQ049BnJFNq1Ku/ZAKs3mRu5sOWn4esiNWJdY5O5aQ2Ajshf1lCKMdeseQ7ryfbHsFMBkrzDEDflL95/Eb+M9b/cnij1ON2Kb5eRmHk084MDNtfaZKcpf9LOvAc9zHk062uqgJTEMyIwLyQ7N5DnjdEFU3QvlQgRLoeEtDJpPJnb6 BXU+oE58 O0VdXYI0JVbBNDTQbOvnzlWyPWCTV5gREeUnc0DHQTgS//sx1Lii2dQSGdbVxQkWUnhWxnGVeAJuD89A0Rh0AvtNWM3Bm8uif+fejPdB1H4RW6rLU9zU9Leau5TdiWc/fiMCz5lJJCz5Ayzjf4xVJLoAyG+8h5YK4rSfyCfvY/OYew2skqyriIYt4y9Xl3dkY7KbiTVdMavt0RhB2MgC3OZFvt4b5o/kQvh8GWSJwZLSMvZ2zRse5CFhDsrfR09Lit7SP6xb7WEayGNnddgohR4CXnyQizUbcBEpAmt5kp762pTc6BkJNbQHtIsYNViJxMkIUZhaWPU0psCqfREnU7+ossMhtwXa52or/FkIkhCEDy6Poy133KLdFbnBHI2INmdhUnAq+jhyZqsIB4MK46olEGQ7ezFLfnYDP3xm+ceQICCX19QN/M8uFQdIctiDQCDBGkBcC9COgvc+NQ8+ytV4YpGF9kR9Ymq7r 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fs/dax: Fix ZONE_DEVICE page reference counts
|
expand
|
diff --git a/mm/mlock.c b/mm/mlock.c index cde076f..3cb72b5 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -368,6 +368,8 @@ static int mlock_pte_range(pmd_t *pmd, unsigned long addr, if (is_huge_zero_pmd(*pmd)) goto out; folio = pmd_folio(*pmd); + if (folio_is_zone_device(folio)) + goto out; if (vma->vm_flags & VM_LOCKED) mlock_folio(folio); else