Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2730233pxb; Mon, 31 Jan 2022 03:06:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrBkavxJuGjQGtCBzZi+6KaOVY7siWintRRWQI8e7BGdOjoz9Vtb17/6IGl0DUmZFsWrws X-Received: by 2002:a17:90a:34cc:: with SMTP id m12mr34094224pjf.24.1643627170918; Mon, 31 Jan 2022 03:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627170; cv=none; d=google.com; s=arc-20160816; b=07BpNhuiqg5h0F+EWoptBjQVzifSBdSxk7XBLBXIJOUr9t54SvNDDE9JpJOEnA0BIk MCfmtlSZxRi6Mo5h/XDMyedghOfuzBwuvt4OGfMIhplk60gvNRP3qm0YiWIxv4kGJfet u0eM4laD4tm+OIE1+6Uyt5BmgIyD91p3qnL8qFCbMw1IPNISbAO85B7y9Y2hbtVNh/oo F4/YKE+6O8BmicLEFKfXQRvVpuKfHFx07S1wjkknOcZEHlquF1NdysP71RKJombRV8mI ke2b5EKxJZZm1K+qd9cwfpAfSzhQ8YVlJz25C/piMYA2h2OgYeOUR4x19WDp/7zwFpDS yHBA== 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=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=g9xNmJWrIvaEEcXSdFqM8Rt7ZRvdoGVKR80qtF6AEV7z38TZoXagv4IkMV35IT/+aO KntpItJx9hdtCO55pcWFoD01SfO9EPlEJByxxGF+ZQzrIcTq3eZ/tbz7exWIqZ3raOzr 6VoSie4utl2HXXmE7aDDGtBzBgYASgpiAJZIZEg/UdiAWABW2yk+1itudQuMvaEpKpRZ XILeROLcfU2hLSDw01rFgsrhtvoOAq5eaQLMjAQj1xgxbcRBFi6jrGCti8mzFli+SKNa oWtgrBEHBIg4m/HVBHQLBfj3epH2xeEHVXUmTc/+eC5HDRG9JKUxYwJaLKyu+M9ZGIiy CzAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=U6c+XkFY; 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 q12si14321047plx.79.2022.01.31.03.06.00; Mon, 31 Jan 2022 03:06:10 -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=U6c+XkFY; 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 S1349085AbiA1OWy (ORCPT + 99 others); Fri, 28 Jan 2022 09:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245002AbiA1OWx (ORCPT ); Fri, 28 Jan 2022 09:22:53 -0500 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E5D8C06173B for ; Fri, 28 Jan 2022 06:22:53 -0800 (PST) Received: by mail-qv1-xf2a.google.com with SMTP id k4so5936234qvt.6 for ; Fri, 28 Jan 2022 06:22:53 -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=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=U6c+XkFY8s+Ffl7FMQbVxlp2XqdxMulpeXig888uzfihlBCtxwuxIolRJkxjXzaeEX eIVyFvkbbf1xDb6SPEgSmnVCw9pDRfPJMYU4oslaqMl3i67iHf7KZeS/e0PmUBODdSZZ AowH8T2WlGQ4lht/OCyvJWxyWbcXEvFC6taxlenfQBvCzsa6ZLxsUregxcSiDD43dffE wyxXaf1wb+uEKWMD1qAmtSSmLQmslFUsrWqqlGvzI9Koh8SJ+5/r0xM1DEOICXREV+1R hc7uSuZaF6wJJ5ERb4Bbz+7wa78dvtPacUGiJQdQuCom+zLYAupwohfFwPnp5nzy05HC 7X4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hOJwMUY5Bby5v0yKsY6i8lpR9Ki3WovrYD+I2hctsmg=; b=Ae9TkEWjmrtmmgnJ5OatQm8I9yOupBkKknxgGHZ2vyHHxClcxKu34d81j3VrlF03gR U6BIMBS6Wb9g0J92hDUql7jAtgy1c1f4IfJLPozG+v4Qu/UasV0SVMlzaiVcxwb5MUi6 OvTjrnLsHr/Val4NxEcD3ghhIxlkHi5qcwEalXXrlk1aAmB3jwbZdPRBxsWVy1Vs0Oe1 S9nIogi1jk/xUfJeIHNxaz+suJWFPNVPVqVhvpgTYgzVz/R09pnKsx5Oh3TTk/kSBnkD 5GYjSRvWO4DhBRdPPs2STO2WGla9aJU616ODnOEDOxIAx4TW+BFn/HUmGMEUu7hxq5R7 6nKQ== X-Gm-Message-State: AOAM53058kD4X8vjfErpSqTYc+FnSbyRoDN5uE8/YCD6IDm7javzjykp 22TNkfzrKksNpcPOKHwqSQBWYA== X-Received: by 2002:a05:6214:29e7:: with SMTP id jv7mr7547390qvb.114.1643379772621; Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id v22sm1250520qtc.96.2022.01.28.06.22.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 06:22:52 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nDS9L-007UYx-Hy; Fri, 28 Jan 2022 10:22:51 -0400 Date: Fri, 28 Jan 2022 10:22:51 -0400 From: Jason Gunthorpe To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , Dan Williams , Christian =?utf-8?B?S8O2bmln?= , John Hubbard , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy , Martin Oliveira , Chaitanya Kulkarni , Ralph Campbell Subject: Re: [PATCH v5 22/24] mm: use custom page_free for P2PDMA pages Message-ID: <20220128142251.GV8034@ziepe.ca> References: <20220128002614.6136-1-logang@deltatee.com> <20220128002614.6136-23-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128002614.6136-23-logang@deltatee.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 05:26:12PM -0700, Logan Gunthorpe wrote: > When P2PDMA pages are passed to userspace, they will need to be > reference counted properly and returned to their genalloc after their > reference count returns to 1. This is accomplished with the existing It is reference count returns to 0 now, right? Jason