Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2384404pxb; Mon, 11 Jan 2021 08:19:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB+RStfluf2fM33o8oh5XrPxt7hSLpRyibdtbCcOuXMn3m4/4j7+E2WPU6w5H5OBbhfcyt X-Received: by 2002:a17:906:4705:: with SMTP id y5mr186234ejq.112.1610381981584; Mon, 11 Jan 2021 08:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610381981; cv=none; d=google.com; s=arc-20160816; b=xNpR91Pg5UuBGbJjDoXXh4xZlE5mKAsTP6dO8G2IZDm2K84uhBfsvrbo3Dp88Y/4c2 Z6NRuZjx33GZRVHAkzgX2Zk2eWOgs9qa4XJdfT54Nr7JJIrGji80DbyPuFQihEi2kHe3 2PRnmKCSQZBcJYUd3YUwXt48+BqoCMkQGBSe0stEC1p3eGX/jRaPpP7fbU5xTp4bphsU ID5QwniZ7eQW5BLyIIRsO0kkCKyl6zBJe3U0ZNx0k4wnY84G5SFLdLNUWu0z4+RcaJY5 Wx89FcHrizVaPz9UJvnOpIXpVQVwxD9iBrBkr1tdt6JszKacWuxGe60afa/Nm2eVBthL +dAA== 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=/MLcYm9FTPYiWOWaeOX0MRtpZVUJ/LO/iqAkq7nU3CY=; b=RqTM1EMDt8NXiFnnom+cA/PbVrO6vqcy8I4XfsEJAZVKY5pDDe70vW2wCxS1aY616I 1SDlroKsSmoGwuSJ8NnIXAbO8RF10dnu23U76dsPzRCM+67YKhaEPgzGpfRmFttEpNeJ KVMb/ubJqPNg8Dr8UKjQdCtG3iiUkrHE/4KwUAVKMgUu/G6RV45odJTxeOiOKkWrj0kc 9H18JQo6WhsWS4s0THgGIIULO9akhvv7zVrrWZSCpHhZ7BKsszgUUcWnZdE3L36eZxp3 36leuk0ZCXnnYjLDvT7uONJCnww5qlO3pCMCFMJ7N65fHsOZREvtAe86BbA2O1POOgud 4vmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=sXOlN3lu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si6575692ejw.380.2021.01.11.08.19.17; Mon, 11 Jan 2021 08:19:41 -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=@suse.com header.s=susede1 header.b=sXOlN3lu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387844AbhAKQQf (ORCPT + 99 others); Mon, 11 Jan 2021 11:16:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:57376 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730472AbhAKQQf (ORCPT ); Mon, 11 Jan 2021 11:16:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1610381748; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/MLcYm9FTPYiWOWaeOX0MRtpZVUJ/LO/iqAkq7nU3CY=; b=sXOlN3lud62xh6d8BigmuKb+9U0y2dD+yQr4Q+H8DbazOec28y1mgWHeYDR0W5mzLVgghE kMsg2m8cmZStxuq63nDLzg3IjBwQzHWfGwhsoJTlMknXKSyEzEoC6VRM51ZnHqYo4uHmVA wfI/iL+JAeYDGdUPFnKMRYktUhyyhDQ= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AE32EAE89; Mon, 11 Jan 2021 16:15:48 +0000 (UTC) Date: Mon, 11 Jan 2021 17:15:47 +0100 From: Michal Hocko To: Jason Gunthorpe Cc: John Hubbard , 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: <20210111161547.GD22493@dhcp22.suse.cz> References: <20210110004435.26382-1-aarcange@redhat.com> <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> <20210111160549.GN504133@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210111160549.GN504133@ziepe.ca> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 11-01-21 12:05:49, Jason Gunthorpe wrote: > 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? I was hoping to use that information to distinguish ephemeral migration failures due to page reference from long term pins. The later would be a hard failure for the migration. -- Michal Hocko SUSE Labs