Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1808328ybd; Thu, 27 Jun 2019 01:52:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6LnlE+ehvnNh4C2glhD7szjm04wG86f3BnUEpPVWKvbCjhn2nxXU56Fb9XI6MUX6VP/Ls X-Received: by 2002:a63:60cc:: with SMTP id u195mr2670065pgb.13.1561625576327; Thu, 27 Jun 2019 01:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561625576; cv=none; d=google.com; s=arc-20160816; b=VlL3FEqXRlhJVMJkCj7aMskbOM/as8mhJ3v89f0beQba9ixgubNmpwNhHn1u0+1fF/ 4oExchToh5IFq4HdoJ2OpR4qNHMaAAIJC17QOh28N5fvUucwdKBQS7faeMgnBUO/q25/ QywHzFVCYoFnxSYf6zFvqVQ1xsfM+bmP18xxBlC0aSqFTP8w6TTCygDwC7Po0BdjKypX OE0KgWgbeZBHz5yHsEANQFv9dmo/woQKW4QbwbkVW7QTZHY1BF1201ePkgbJrJpanwdt 05Oxibhho9Zo7uBcgS6oxThlPXR1uS6hln6IlIUiUZ+55vkyYDR+6pTLKkthHOvFFZEK 9aaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QFr1m8dau1BcostLGcT6znX5sNiUQrk0Zi3ncilVCjQ=; b=kxLMm7Moyt9sguu0RmNYqOT8KYtijy2/Mu2e/lV2GJoqqE5SK2Lraaux7WHiSKTC2v AIXZnii0lEqiMHh9e9xO1XKbvCutCOFo1Tbo5l7TT0x57JJFZ89IdPrgs1Vsh9OovfWQ Ym20XTxXhD0MamAHCgYYf9BVJ+mb3p31+aqU3l8gyThq7PJ/UlG19paYci6tquCdOqqN taxvy2EQldkeeXkASd5JYYt7Qh+raFgIDjCdapjjrNMkwWePaQPeA0Ns0Sbc05PEjAI0 qV25XzOlb6okGZYY7vdSWWvx/SWDhFry8/AeA60/KD34p4VicxIpWToBc/lL/reL3z51 E6cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si1907492plc.284.2019.06.27.01.52.36; Thu, 27 Jun 2019 01:52:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfF0IwH (ORCPT + 99 others); Thu, 27 Jun 2019 04:52:07 -0400 Received: from verein.lst.de ([213.95.11.211]:50739 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbfF0IwH (ORCPT ); Thu, 27 Jun 2019 04:52:07 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id B4FDB68B20; Thu, 27 Jun 2019 10:51:35 +0200 (CEST) Date: Thu, 27 Jun 2019 10:51:35 +0200 From: Christoph Hellwig To: Ira Weiny Cc: Christoph Hellwig , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Jason Gunthorpe , Ben Skeggs , linux-nvdimm@lists.01.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mm@kvack.org, nouveau@lists.freedesktop.org Subject: Re: [PATCH 15/25] memremap: provide an optional internal refcount in struct dev_pagemap Message-ID: <20190627085135.GB11420@lst.de> References: <20190626122724.13313-1-hch@lst.de> <20190626122724.13313-16-hch@lst.de> <20190626214750.GC8399@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190626214750.GC8399@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 26, 2019 at 02:47:50PM -0700, Ira Weiny wrote: > > + > > + init_completion(&pgmap->done); > > + error = percpu_ref_init(&pgmap->internal_ref, > > + dev_pagemap_percpu_release, 0, GFP_KERNEL); > > + if (error) > > + return ERR_PTR(error); > > + pgmap->ref = &pgmap->internal_ref; > > + } else { > > + if (!pgmap->ops || !pgmap->ops->kill || !pgmap->ops->cleanup) { > > + WARN(1, "Missing reference count teardown definition\n"); > > + return ERR_PTR(-EINVAL); > > + } > > After this series are there any users who continue to supply their own > reference object and these callbacks? Yes, fsdax uses the block layer request_queue reference count.