Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2890079pxb; Tue, 12 Jan 2021 00:42:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWlxNMRbyVQHnbP2/zzMcK76ato3cbodsFIyvDTtn9gnbvHvtkovV1obgtxmnt0nfvwK+P X-Received: by 2002:a17:906:3c04:: with SMTP id h4mr2406102ejg.220.1610440963867; Tue, 12 Jan 2021 00:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610440963; cv=none; d=google.com; s=arc-20160816; b=ZRdLS9DC62dH0hWofU+j7R1zQ8C7rGNxZefY5kSb5dclHBjr2kdfTgn2EOk7QJESPo 3B76Ir07sDDV+1Qwe9+FzYFSRqOkpdQGsP5CwCxlNl6cxWywKGTrR7teEOjc2WhWPGyl scSBerPaF8uF1c01z1Wn9XgbeH3WUbttmDK5a82XZx4ctm/7wrPgtgnYiZPuLOLsA8xr OenIu4sjlFzOfWDtWz4qx6sBZVCaMvGYJsTFEcEk3BfwuHNfEYrzhE7y5YGwf4jTy+1B n5ja9D+Ylug/6QuTlC9qCD3WNhFKo04dLsyBvvr6cFTjoM6E0B+auUsY3cpDk+URKolg bgRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VJXKJfI0gkDENX20LedauSobFPKF2L5M/RH/WmsJp4Q=; b=JCMBsJVDy5AA+86RQK0qHs5DTVTIyylvvSdZ16tKCWw1XsUZnP83PAp41FkkkuvnF5 VnU1k9U9YtaikQwnahwslvck6QlFEyPcZSNu9V3PED0bGD/QDwwDyz4YBnbx0KSxx6n8 hjQ8SGV2xjm5HPSAUhmTGYUxXSGh5fJdxUunvQP/1zdohDzepyRVXLqufoJzyF4NnsCX 2i0OPOZDPo/Ez2AVLnf/erk+QMBNDiRKsl+8L8SV5O4LSgcb23jBzuQvoydM5vbzdtNY Wy6sJTw4Rfj7KGa15xuEIgPVvYNQYsRuAo9WnX5eVDsBPexNV2rINBYKbbRDxMEHQmrH iO+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=QjUyGJ59; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 96si1062256edq.111.2021.01.12.00.42.19; Tue, 12 Jan 2021 00:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=QjUyGJ59; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387881AbhAKQGb (ORCPT + 99 others); Mon, 11 Jan 2021 11:06:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727180AbhAKQGb (ORCPT ); Mon, 11 Jan 2021 11:06:31 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11903C061786 for ; Mon, 11 Jan 2021 08:05:51 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id y15so21366qtv.5 for ; Mon, 11 Jan 2021 08:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VJXKJfI0gkDENX20LedauSobFPKF2L5M/RH/WmsJp4Q=; b=QjUyGJ59RkTenwFcqXVFU8Zcc3L7HYBxKmb4Tk+6nNJKizrbrrTv6nJblC/YT3Vdpn BKl24NzdGALlS4FrA+pAi4StCQE3H94rtiZnxwjEkj4nekVK9TwCD8bfI7Cx8AS6/QK9 hwTjB75PvTQJZ4goicxxTHAp9voTWbGLOzdnuojAujabAppnuE8eUOWYPBRz6+T0L1UT HrVRuTgmtFbCdCgQ3ntXgEKgziYpheEhknBrRGrzns9XUrOSvTPD39aqtU8l3GmBS0EA COhGArctwrcxAjKs68+aSTkfcIl1a4/s3Txd9Qjs7XvS21C/79GpUDnAQ1OwTaXQs7gG XKmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VJXKJfI0gkDENX20LedauSobFPKF2L5M/RH/WmsJp4Q=; b=WO618aDDo/3A4KEgaICudISClt0XyC9xKjZU/5lD2mLwvkO1++JkhrsSHGBNXQx4VW Chjo69CcRDxO2r6Z4006QO9YOM/eGo7KWTMz3giTNL0XC1Wk037bXHH7jpE62UFRFx65 igiDkrBBgdxaUJhVVop75Gi20kBB4vZet3F7n4QbTaJDMZx3YE9OV7KpHOEIRM7p7MXC 4ldrp2BQUPWULZntTP4wCIjbt3PlBHrt1z+CYHAC7yo77JSa4KGNXzQ9uDqcBrZyIOW8 pyGjychBGR3pyzjgk6gXHtpryAkVa76cAhWi3k/3Ol3viovDcC/6ze03Jzy7PkdHKJAX dn4Q== X-Gm-Message-State: AOAM5335eDiC80oUclUSyhtwSS4JhvozvyitRiiRR+L+3ZJ1IWeViVxQ yqfB6WHoYjoZhNESapgG36Lmcw== X-Received: by 2002:ac8:4c8c:: with SMTP id j12mr268786qtv.133.1610381150214; Mon, 11 Jan 2021 08:05:50 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-115-133.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.115.133]) by smtp.gmail.com with ESMTPSA id h75sm91222qke.130.2021.01.11.08.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 08:05:49 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kyzhV-005YPG-0o; Mon, 11 Jan 2021 12:05:49 -0400 Date: Mon, 11 Jan 2021 12:05:49 -0400 From: Jason Gunthorpe To: John Hubbard Cc: Linus Torvalds , Andrea Arcangeli , Andrew Morton , Linux-MM , Linux Kernel Mailing List , Yu Zhao , Andy Lutomirski , Peter Xu , Pavel Emelyanov , Mike Kravetz , Mike Rapoport , Minchan Kim , Will Deacon , Peter Zijlstra , Hugh Dickins , "Kirill A. Shutemov" , Matthew Wilcox , Oleg Nesterov , Jann Horn , Kees Cook , Leon Romanovsky , Jan Kara , Kirill Tkhai , Nadav Amit , Jens Axboe Subject: Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse Message-ID: <20210111160549.GN504133@ziepe.ca> References: <20210110004435.26382-1-aarcange@redhat.com> <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 10, 2021 at 11:26:57PM -0800, John Hubbard wrote: > So: > > FOLL_PIN: would use DMA_PIN_COUNTING_BIAS to increment page refcount. > These are long term pins for dma. > > FOLL_GET: would use GUP_PIN_COUNTING_BIAS to increment page refcount. > These are not long term pins. Do we have any places yet that care about the long-term-ness? The only place long term would matter is if something is waiting for the page ref count to drop. Jason