Message ID | 8bd0a8c0f62e2d2d8ece6f445580d20b73e3decd.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 ED9C3E77198 for <linux-mm@archiver.kernel.org>; Tue, 7 Jan 2025 03:45:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 81E916B00BB; Mon, 6 Jan 2025 22:45:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A6D56B00BC; Mon, 6 Jan 2025 22:45:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5AC236B00BD; Mon, 6 Jan 2025 22:45: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 386A96B00BB for <linux-mm@kvack.org>; Mon, 6 Jan 2025 22:45:38 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E19F7C066D for <linux-mm@kvack.org>; Tue, 7 Jan 2025 03:45:37 +0000 (UTC) X-FDA: 82979266314.05.5DD0FCB Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2076.outbound.protection.outlook.com [40.107.223.76]) by imf01.hostedemail.com (Postfix) with ESMTP id 2C05C40003 for <linux-mm@kvack.org>; Tue, 7 Jan 2025 03:45:34 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=EQvN2DeA; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf01.hostedemail.com: domain of apopple@nvidia.com designates 40.107.223.76 as permitted sender) smtp.mailfrom=apopple@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1736221535; a=rsa-sha256; cv=pass; b=jRcEqdR84yTeSa4Ftnr5DSQZNftN2uOntlV7RxwuA1F3C2443NxEMXxxgnRvoI1OldbQdq 8ltzurSCqLUq4FtEudnSUFEUq7YdRiIO59tp28XHpnzN9W3sDXNmeBtSL6d/vyZhTUhgL+ /dmmST2rePqrC9BMn3RPkzRjpDHVxlA= ARC-Authentication-Results: i=2; imf01.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=EQvN2DeA; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf01.hostedemail.com: domain of apopple@nvidia.com designates 40.107.223.76 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=1736221535; 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=ck5XiCzxtWS0Ep/kZkIuKJrjA1hdch3Ab631Ko01rm8=; b=nwjMkT0khr5J4VJWr8FaPNXqsKtHEAz6IKxPTu0arp2lDPNnyO6PcuPPdbI2i2/UOzA8DF T432nFsZ1tihX1A0mkj1L7KBgNwscvxYXU9JqEISmWRFK2dGg0Jxx1EYxqWKn8+WpC4q5+ 6jdXdDhJK6BYQPcaDvCJ3qCTGHEeITA= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fjbCVGBoH4uIQcuJqo3emNoiaX4VuPzCCDz8/caco1311x4fHFKvSRUp/Lm73wKlGE4iTy7jbSeONzyPqaRTTw3Wih+kOmHVelbtZSbDCevlZZZgzu/ouVWYY+bvZFNE+kNEcF4XjsCbkHFUS6vkc0uhPQTb4nBy06Gn97TD6CBsb4potCz3RcrKBa+zP0bv3KcglG3PFB5+6tnt7pOKV7JzrQqF6kkj+pzhdBMtgEmQ61jspqJq9AM6iPTBY2rqMVupNPHAktU7W7PcdSwSk/y9TttO15pFWo9IJ5wGyvQySDcQWjrXKB1UUYbiaGfEMvNsPAM3g+TMIXl/IDrdZw== 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=ck5XiCzxtWS0Ep/kZkIuKJrjA1hdch3Ab631Ko01rm8=; b=T9ZT1HBFUZ4fzX2vMqDTitEcEehhzdl+cAGdXMHl2GtKZ6PVCWGi6Kdly9s/xoocNnTBN4feYdSYRa1AIgbu+A6hL171N5F9OKUXSP+h5eSJOOxZr0P14Z/ug9NEdcIxp6N3j29tDllbF2ImvQV+QSMTBK4ik3FYpE6he7++dD6d9mwLYAu4OXTgXvopLxrKI0bWu5gw7oQpWAPndQrIhQF9A21ANYK1IfxNknpKtaGIyKBVAoOv305FABJ7RCgdssswZuhDXK78RfqnabF3RfzRyy2SjqJF0TvE37xojjXvQw+ALwKyB15Meb/LwpWnbkNSNtcnOtRspHMe2VL3ew== 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=ck5XiCzxtWS0Ep/kZkIuKJrjA1hdch3Ab631Ko01rm8=; b=EQvN2DeAAbhG4EZCCekipC7TWsRB81aaiIVDKGxAFBgKBU9lVQC+L1/jly9B+7+TYdmKhZXtTW1CtczqAdSIN2bqbFTBNNDQ490EvGrt3IxmPrP3QLqWErZOnIIWZNHNGiFIrgNrDM4k4HbypSEtMmkq5Xj2oMNADpagx0ou9Ao9ZDbwKtuS6LYAUYng9pmqUFXSnmp1UDmPSQ6jQuHyGBCuctnXcTaVhW3bC5isarBUOsQE4QWyqkL8WkgQxMuhQh7FSfu+fxo0momgR/9Fft6qMgqFb0NuABl11Fjt/psQZDfvEsHejU5CRbsUMWvHbOsO+9GLiXXNtXGunl3dkw== Received: from DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) by CY5PR12MB6129.namprd12.prod.outlook.com (2603:10b6:930:27::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.15; Tue, 7 Jan 2025 03:44:18 +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:18 +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 18/25] mm/gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages Date: Tue, 7 Jan 2025 14:42:34 +1100 Message-ID: <8bd0a8c0f62e2d2d8ece6f445580d20b73e3decd.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: SY8PR01CA0012.ausprd01.prod.outlook.com (2603:10c6:10:29c::11) To DS0PR12MB7726.namprd12.prod.outlook.com (2603:10b6:8:130::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB7726:EE_|CY5PR12MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: 86b89121-f9af-4cf4-bab4-08dd2ecd9095 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: 7lFpxijuMkebbh8p0fenhtH7ApCD8KhAP4e03QGVLmxjn3wiZ7rQIm2bGmyvDe8Jbq1Nd7Gy5oX2eMQyxfmpvOLBwdEcqOKIRo5jIa7tp3b8km6Q+XloaBN+dM+0tOx++iLaiWEx8yMMQ4WDouJc3QqbQtwzc+NAa7hZpeIHi2hGeZ15jF4V3lW8YFvt/brUGMIvHE1DJP5k7Cj62UUKmUF271nsMQ8ksd5ItyJY8PNjc0oki3TQwjnxDRicE04aHU95x+9BhCM62N7xmZv18lkzEgP2+M1FzMI6Qg06X4QO4hP89KQiQEp1D0WN0Zvnu96SIQwTC+9NDvJF9X+75LFedJE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CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB7726.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NBqV8RDm5Vt0A8f3DThW0XqkrdXykQ7wgyT40lAfARMnj8A2p6TfurYTaa1CxHIIcs8Hnk8pgJmcm99eZ+DkVDoGzPi0Ah957Ct/tCW6Nthbfxq2L0lxxVGJuRH8M2y8I9CfxUzirr99CyWwCIv6ulYEezglsZZfrqiKbFFwNioSl3MOFvwY3wuBa6ZiuzsMHOqjLL6Qxh6peDyum3fIgB5tsSJjkUoFuge6OF0Zl15w4pq9QG5Di1MTwYbumkYNV9K2m9499vX/yZ64NxhYgev8IFrsToeOig3CuJ+kirz8A2JM8VZXkoP3GwoT6PeBAm1W/4Y6dSrkIYD5dQd/yJ2Gt3aHTnOVPkGG0MLWxnPzBVMz5YO+k3186KCSyp9A0ypON3eCGK1BiBJUkqQ6qSzuOXz5jTP3DE1eHlDwvv4A11SuFrN4jLTUtiPcbWsTqVQbBIKfQLfSf6Gd6vmIzbZdhSRuCbpu44pr0vOzxpMoC6HMVOkQ7D0+k/pl+9uTf3GHdffvVvXsQN1ZseBp/2LbcI0Pl8t01xYHi1IwhRc4BaQeYHZUlN9o6q01UKyzwf+FAOgg9QyPyAqUklnnMPMs59gquvm7h54raRqJbMY0IRMahue4ZazkLuq8RCbG8lLlTFqNyk3KhiViVqQHJS3+kgLw8IKltzN7sfasyXoMUb0yrJNavHkVFnvsTN0/2Tz4cZKfNAH+0uyMG879QP12IWie+Nzz1a6ihFycE39YIzCtX5T07gONJMgBtyf0r7Ouyx3Qmmzo/LKyXaziIUMCu/XiB1jw/uPvPwFvroEwUb2MR9QacngdWpy0TJgeobsW8u9v/o51bHkheLN0o+xROmUReyM40TwXJKYduT3+ROsV4TfYcKlec7wgVylc9E8MK052b1gR4bKY5/HQWVI50KGI5SWHsI2hl5dXkjtlJXD+8DzKbm7NgxMdauECBMI2QpKHQ/mU7bsRGse2wM4RWMQI9+WRPsvW9CcIjdTY8EZh+JZcupMt1qZarLq36RoSQQ7QFCrkdQHAej94cdyePyJSLEBi18KhTfgNRZBWsTxkXdkghmxU9WlomVlKjwhv2Zc0vMRWQgPlquS8ty1wGun1PwbUSDg5T06HPYsT2l0Ns2AObh3q+cfN/A+gB6gbloIkowJo5DTQU+tX63fJpiqVlqb0RA4uEQJgSidqOVfBIIrCQKADZBIl9DnYZMFN6MF2xNGCdqY17YjFi5Atfd/3Nxoy19bKFZSO3b2XVKqvQlSLW/JU8EouTDGyLtGv8h1AXycApEirj7CklqTCW4oeLOdxJWcOue1WrF61nfgpohM0fKLCGN9MhMi/8epLcjyJXTiaVhT9/Cv1HzK08arovXjTEQvUnkFnRqSdl3KpFWWJar5Jy/gPh853HnrKA3UyMZ0RhEVzIwtORFM0Tew++kXoBuehc7eaBSl2DHKs+geaXAgDQWZJJkGITNvB2jGq2eUGqRiS67hZWvzLWqEBBVu38lJJg0odRxmMcSiNvj3C3LBrbNNOGtg5Y/IJB/TQidWfJq4IDgo8xBk/DszMvQ8a8FiKSfo3TFE7xDS4KbrGlG2R4u9SX2Xb X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86b89121-f9af-4cf4-bab4-08dd2ecd9095 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:18.7103 (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: YBt6QiCUUhNmcW9ZPZpKiA3s4A2bDWPeBBk02qP62I+Kb9+BE9CQQkiCn+eob9beK8p1KeAoWcUGPwtqrK2dwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6129 X-Stat-Signature: 6qr44oj51je95j9gjjhanaqpfat11wfs X-Rspam-User: X-Rspamd-Queue-Id: 2C05C40003 X-Rspamd-Server: rspam08 X-HE-Tag: 1736221534-378001 X-HE-Meta: U2FsdGVkX19jb5zIT5apw/096LCvOGCn53PMQz2bFDNy+/YFkyiAI+VruEIQyj1Sdv1KVyjlTNx5WI5dw2GqpBLW29GACaJR97BCTon8fI1/Fi5/n4FweDDbwju1FLpl/eKcZiyKGbjArKu/KsQbsfC9FJHANPMRWrr4U24XypgRR7lRqLWukWZP33E3wjC8TxWHArIbazWpKSBwgTyPqskFSIAMRPyU63Meg8tQPUthZ3BmV1+D46lsRMy+YKcbEhPSwJlHxy6K1Xgs1fQK3mRFN8n/M4iIrdLGc0e8hDv4/QWAAaa49JME8jKtf6VcAeQyP8gIeXl+oK50NOCbSkPvogtYzV3hhjPbfcK6Yhv6IX82Va1n95ch87ixS1vbevnsKb6yF8n6LCaq5UIygnRquoD8xk9t1JIbfpxkZSzUrBSkkZ14x7f4+d4mfDoDrP7gB+A6NVIeueCpb3PiuAOlXwEpo7zP0/lRY0ip16bNHmeKEsWX3OS4lj2U8ncgpjXUQlB8A2rTmJ7PDo1X9ZbeuVsb5Vfzv6+htF/Ka+G54oLkGyBuXZOYPudBcjJnuvAlMd67xV3+6HIiOE7YcFOddfi3ek8IJn3tTvL800cPjkP0lzE/c2wPgQ8Xs4trZaYg+4qwvlj0YwKUxqGwsY0bbLkqMWnAzeGk7uraHJxewX37JbkbQqREbDYovpHGobm3KaiF1ynfpmqd+3MCtLkyA9mBtsdermpAhB3AtVzkw5tVXjaYB2oDo9UBTl5KlVyG74sriqHLoNVytlDoJC4d2/XBdGm9fFpAlzKSc0gWuSX3bdM43anRZ90UdDCVEfnxSppKk9Xr848g/B/maQRAhMMuFsua3Joqm+YmOpxOyPyBWhf6hm208FSHpOok+vLihPv7NHaRKtbaRAFj5ltUzjJIFBq/tdfZBjzYHFXPFrcFk26lHTWIswH63QPTQnwh4CDV9Sz7lzKgnFC KtRFpkY3 o0HRTAm5XU3Jsmynv7xjcgil8yU9RpNlBQtFJ4ihdYS49xyYImq0Bh4XbCpS71KBWSyBNOWuc46hUrh8mwNljiAjQhtmpeIopnIGockjzyP1X7Y89/x3/PMiNzXM7EAB3MZjDepkV2zycPlMp3DV+lkwGx7vOKSIQFYVWmyCL39lux2hLEsOX+mWlZXLFhIW27C0wjkG4cbzRj3vn6lEuaaE6XyN5QpoMgkkZH6jbyWkbe0m7WmAU2i4Ft2cSJYci/KOW5gTD5Ejj/JPnz9aKdWjCasYrmMXndJ+I/ix9semheP9M46M9beCaZQpC/K2jeQCVgNrpKOz2dm06gK4eHPKjXPDgbcS91UXj82ynMIPC49+1roDH9Va8kz+gSUKr3Un+N69U8h+HZdzCuyxkAazylrvxL4hhGZW5lweU3skRaHmEjNSOiXN1ogeo4fGJwso7/MHmYIgG3+xY5RKai0DX1QS6uO/M5rJaD9tAChixOX8= 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/include/linux/mm.h b/include/linux/mm.h index f267b06..01edca9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2078,6 +2078,10 @@ static inline bool folio_is_longterm_pinnable(struct folio *folio) if (folio_is_device_coherent(folio)) return false; + /* DAX must also always allow eviction. */ + if (folio_is_fsdax(folio)) + return false; + /* Otherwise, non-movable zone folios can be pinned. */ return !folio_is_zone_movable(folio);