Message ID | 20241105032944.141488-1-jhubbard@nvidia.com (mailing list archive) |
---|---|
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 83794D1CA15 for <linux-mm@archiver.kernel.org>; Tue, 5 Nov 2024 03:29:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 94BEB6B009B; Mon, 4 Nov 2024 22:29:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8FBE26B00A0; Mon, 4 Nov 2024 22:29:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 74E986B00A2; Mon, 4 Nov 2024 22:29:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 534376B009B for <linux-mm@kvack.org>; Mon, 4 Nov 2024 22:29:55 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E7F06C077D for <linux-mm@kvack.org>; Tue, 5 Nov 2024 03:29:54 +0000 (UTC) X-FDA: 82750611342.23.B44A9A8 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2088.outbound.protection.outlook.com [40.107.101.88]) by imf03.hostedemail.com (Postfix) with ESMTP id 03F2C2000E for <linux-mm@kvack.org>; Tue, 5 Nov 2024 03:29:36 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=hnHhpIXl; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf03.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.101.88 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730777225; 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: references:dkim-signature; bh=7TB+el21/Z9AImLWwVBF4Q1KVLs7X30NebPrQhdcVLo=; b=JztmTI4Ilf39evXCmZq+zH8WKxvK0d5ys6JWD2vLttClPiJCbR1sKbymGr1GPkGHhnYhM9 kc1EQ74+3LsKIJqPwWcoA0miwfpgmRJAXdrBQvOxB0tGxYZfLx1cfreXFsyzz6giOCxfuH uWUgMgm1vhx/dOYkue9ONSiKpckx9Wk= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=hnHhpIXl; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=reject) header.from=nvidia.com; spf=pass (imf03.hostedemail.com: domain of jhubbard@nvidia.com designates 40.107.101.88 as permitted sender) smtp.mailfrom=jhubbard@nvidia.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1730777225; a=rsa-sha256; cv=pass; b=d9RcqVhJ6fYgSM1UY0ODq9ObfeueTSingkbvxkvJMoyjq5Nvro0wU/8RXkFOFwKEB/8djy rybM+wH2zfA/4uu47ISpDMqeE+GyGflyoiYgSMYpYb7GH+ikFtsToqeuGGsiP9wDqd+WMj rHoBNO+Zvz/nc8zAKT7Pcti60+GV8X0= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P/zvktoqFZ5C4h/BtsAm5S/aMeYmr00Sz4rGGnz8cSmYN36jPjakdLx7FUgTMCg3Plp5JdDE4MHuv5iVWeWXjWTtckeQpLu8Y0PXcICxZQpZN5MDHp3Z0qbpPuJQ9XW2yYeQJILNDmqiqKU2sz0KLinVtFnOMIyeUW+naVD07kmW9NfqbmqT43i/5et2CXhOGYm9eeGgw/w+95TONf5VFaWndk5bG4CCijtRixFYTASqTzYmwdoQKE+dRsXGoz3fyoK5EBn351epJIKqrCkm81d+LsU6suKKB0zC3I37esbPAWLqUob0O+Gf35PG04dAEMcZLBINkMFeKHtU/rXanQ== 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=7TB+el21/Z9AImLWwVBF4Q1KVLs7X30NebPrQhdcVLo=; b=Sz86BjuYSkvi1wFET9vrvhQz+G5OA8V/rssIlPyVhWUvSW1l/ZyQIrvj1Wt8erNN99GdiDd4tsNDQlrD/sOw1F+U7gxtLA5XaWxMMS362JX3b/HCmGY3fsYO1HqLl+euEY9s4aGnWsIAxVpMtr6we+QH4GrF7/sI7a904W0BHLZHtqXfrcVMxvfTDmVD0NTIK5pN0d0CX9zcdIO1lAWnD9YN/xOVGPDLalm4FLFK5YaGuxC5bHJ2hsanofDiZ0ce6x0GPJbOmIxYGAOuM2LYgZaq2yJ8Htc4p52v7NN+SvCi+jKHuW9Px4PM9L0B30LU3kjKd+3S451k8XmSMi4m1A== 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=7TB+el21/Z9AImLWwVBF4Q1KVLs7X30NebPrQhdcVLo=; b=hnHhpIXluA7kf0nlnSmzT1O9+nKRF5KJk1317GnL134ufxWDPDRlzb2lZh/qqV3x2CNkrjekLUtz2Msh0MkjOR/F0lbMr4MlYw4N+AXzA2CbMzdB8r+tG5XflzPzG6J4l3ctwHdVlMw/heh6q+bOKOHpwM8mfENLCQAygvXOXXNvZsBE9JvRljMj/XniZ/2PZ2ZjrdAUwjGgXMqLyXBTi4Zibt999YZy8o8CFRP3q8YLh6olDORrz6xqFIFdgeDHTzegAbFm0MGR+Dcxja5EudkInc2QIueo9rwT/3d1RnfJLb4rolkM05ups6EpVVCUX2WOqj9Q8wY70LBueXqw4g== Received: from SJ0PR12MB5469.namprd12.prod.outlook.com (2603:10b6:a03:37f::16) by MN2PR12MB4048.namprd12.prod.outlook.com (2603:10b6:208:1d5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.31; Tue, 5 Nov 2024 03:29:47 +0000 Received: from SJ0PR12MB5469.namprd12.prod.outlook.com ([fe80::ff21:d180:55f2:d0c0]) by SJ0PR12MB5469.namprd12.prod.outlook.com ([fe80::ff21:d180:55f2:d0c0%4]) with mapi id 15.20.8114.028; Tue, 5 Nov 2024 03:29:46 +0000 From: John Hubbard <jhubbard@nvidia.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: LKML <linux-kernel@vger.kernel.org>, linux-mm@kvack.org, John Hubbard <jhubbard@nvidia.com>, David Hildenbrand <david@redhat.com>, Vivek Kasireddy <vivek.kasireddy@intel.com>, Dave Airlie <airlied@redhat.com>, Gerd Hoffmann <kraxel@redhat.com>, Matthew Wilcox <willy@infradead.org>, Christoph Hellwig <hch@infradead.org>, Jason Gunthorpe <jgg@nvidia.com>, Peter Xu <peterx@redhat.com>, Arnd Bergmann <arnd@arndb.de>, Daniel Vetter <daniel.vetter@ffwll.ch>, Dongwon Kim <dongwon.kim@intel.com>, Hugh Dickins <hughd@google.com>, Junxiao Chang <junxiao.chang@intel.com>, Mike Kravetz <mike.kravetz@oracle.com>, Oscar Salvador <osalvador@suse.de>, linux-stable@vger.kernel.org Subject: [PATCH v2 0/1] mm/gup: avoid an unnecessary allocation call for FOLL_LONGTERM cases Date: Mon, 4 Nov 2024 19:29:43 -0800 Message-ID: <20241105032944.141488-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.47.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR05CA0077.namprd05.prod.outlook.com (2603:10b6:a03:e0::18) To SJ0PR12MB5469.namprd12.prod.outlook.com (2603:10b6:a03:37f::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR12MB5469:EE_|MN2PR12MB4048:EE_ X-MS-Office365-Filtering-Correlation-Id: f537af11-812a-4833-c3d4-08dcfd4a18e6 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: s/A9e2D/2ZI7D5Shha2dibmo4APJkS/mkpAq3KG/4unVEKAtONe4WGOPAuqlAwOCtslcnUwIn3bD8p23KXSS01cfPUAHpGVJxugU55VJr5VaJ8Gr6cbO9uCd3xShWO6cjNvILYJX9L0wynHMp3rnle/wRrEVfOVkjhxPc0X8L6i0jykONnSi8Uo/Hz8SrfnPBv2FnksqltCedoxtVy3kKmPG0iCs0c5NR5u1wnCx2Eza9vEexULhA3JVOF4o3ZN6rMpShQX4Ut8Jtged1ROIvCbypucJtfZg/vwhbojsiXLPYq2jTSU3FE13hjrVUtH/J8ynS7XCAwXepusxJ5/1NXkSqnQUk2tsuuJJ3FvtZZJhaFCutIorqCKV+AIGiNTYHMv4BIIupl0k7vRH37DYk32VUi3apyJBxqFjjl+VxyU9mHxoVwLjfBkU2setOwR9QHLCz+2lFsS52NBENCXQBYLB/huyxVxs5AJdkGkPuSPo+0EPZnyDm0vkICcMCkKZDwLigbOEp7DpIbMA4iCuPnQtahmSEK6SjlDRZIWzQxU3ZSlkCIpj8qRC8MiJFsgNRqKoWQJCLbxZe/BfOadpNWqRzrPCpiC6Qo5FwcL3+Ewjso1lEWYfqRVphFS8Ax3lE0oR8EupNzeBU6H61u6Ir3eDEwMhiVv4mrcXtqz2ApqnRhpl1EL+u9EhJLvJxG9cgxY8wSOjHQ7sIgNPw153F0+JqMZddOtDSt9Gfe2Rm2RAAS6ah6trG257/Gq7dKZid1elCIiBPT3zgVXnBJm+hVdRda+hLqOTjh6cpQ0TpRndj2g7FQGnSL20bYPKfKOQDa+f4T9OKCIr166/OPE/WUKFvyLYPyrQU/8c+d9kOwzi4+xXoxAOB04pBEFxshqaZcQAqvZfq/oRbtRbKU2DiHgfmHu9GaWL/r6xIqQEn/CC6v8RyERZ3gr0ce845IVmtz417cmTqUfVynQSn9T8kxdjET5AiK9lCG4MF7Z3LteJKXpXIvKRg5XYWstkOeLrUzdD3tgKmLVwiiiU1vFv4cB3UQi1xo9VLgya/C6A6jgRWVBYbnuB6wAkgstfGZAm3CxuUJepmzHq6Dr95YFOAtT2nWWlmr3FYYTg3aeVuds6wf/9xSQQ55JoXhxAiVx3oQnqZWys+2ytH/C6RFFB1+jKTnaiapsV/YpdhJj2TdsgmWEpwkHBcX2JgjD7NjzBjGFV3ojpYgT8yNd95ofiyJJs6inYY6FYaTYVNBmYNGh+ePgU1kdIPcKSAezW9WCx07h2f/B/n83RYDttMvyJ+Lhk1IkbPBLaI1K8GJpn1zkehYJB+8rN/aVFGmRY+Tqt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR12MB5469.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: 9Cnun3YOmj+WhgHwZhUs0c8GKdnKSQJs2FC+OYuHtYkSRxNz8AsV+Di278SdtSZZxINYn3b6oyE2wW9xD8yJG3ee+XfuLkQwkW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hvPQc8aTHa4T60hWjQ2YNfzEs9LJDSuPG23f727HjgU3AxC9pUgeUtqdikOukMyqOEdUYjR4nERR7ioGa6UrjNlRfHvj0uqyBcHJwZYtrE8ObFZkQlWW3oIxiBeZkfn7nWr72SJOQqo1zFIeH7UJke/hu0EywzT4ejeUjGnqV5Z7ny9QssuFcevDsuXhhYt4lM4rMacBbUYAjNGi1HygTt30ZcWiGIIJyzTTRPvUtjGJBIkDPaxBVJf93URStcPMfStsxGPrnWXMv7B2C4qBEOKJXjMymnWFm9ttbj0+2OH3Aza7Y7plJCOmfnr3fjmQHkEUfnEBly/s4CUI/jMN+Wu7/kf0rOHynFHU/HM08XUm5PunMHvNX4njFf9PdBUpB4lH4PK1hNVrLEkNQfftG3T8+9UP2 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: f537af11-812a-4833-c3d4-08dcfd4a18e6 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR12MB5469.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2024 03:29:46.8010 (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: 9r6VS1j7nSX+DYm3YU5kviMz4ZA+Z1n9XjWlA6an3mSkvcaCCD8yzwZcfKly3jnF1wQ4USDO4iSkbChGLWJXfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4048 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 03F2C2000E X-Stat-Signature: 141uez33jktmsmtmo46sy4gcya7ibng5 X-Rspam-User: X-HE-Tag: 1730777376-703 X-HE-Meta: U2FsdGVkX1+Ul6imehNkXXlX3QI6l9OTSZF49SPynbtt//jkl/q+0qFD3VOh/tNa1WQy/zvixouq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2e89I69xJ9jVrjAo1PCchcPpblfupf2bLhD5/CTzkY+qWkUnahBNhBmVhQ2zilLiRjhJ33wkHgYMFo6RvzaAS0j5sw9jC+cTY7M4WQbkcd2zuDPwRM5jAja+jf90DHVtZTn5KQFrgovAmJq6UMXspEXBqUscARqQQmRsFDGmQG2u+ZFq0/wjd6pPyzkH46LLhvhTxyRsCjCBDwTGCYImd+aNCrEnbEmAmlGVdwfpkVr33I/wDgUoBkMv7wJAe01FIG3p6YIJoJNkWCC8/lEvER61SN0jVfh1DZRoJvxNdmhdUAxxUVAxTZK8Pl+xkcbK4PVJwLAc3Rb+OKg/kHFK/0vDfc70ND6F5l0Od/Sa5orXatyLW3QGbPWDFds= 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 |
mm/gup: avoid an unnecessary allocation call for FOLL_LONGTERM cases
|
expand
|