Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp615215pxj; Thu, 13 May 2021 12:38:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdGfIgRA7wZWbqZ8BE4aZ/EjJ1rI2M95I69o5ZqhFbIxrAD5Oeq0/EyPIzGg4HRv8UZfMX X-Received: by 2002:a17:906:a44d:: with SMTP id cb13mr44380803ejb.107.1620934684942; Thu, 13 May 2021 12:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620934684; cv=none; d=google.com; s=arc-20160816; b=mR8EIt5ceK1GuiyW4QGkiC4qK+f1HcGvcNqAy7wCoEazZD9SWpfeg6fdLCNftzLFIT wmA6hD5ad+0h1sleiofrUObbsS3HXe+G7WePPcozLHoSNlXFvKSeAZIT+dtxZlHlV2Ui nYt7m0BO2kC6rU8/Ao+DW8iPd0/pN6549UfsNhWmPxCNd4agTbce7VIeKtHpO8dKzbj1 4bOdOZbaizI/ncqIC8AVFFufukXsFNDOlMFr3T5UO68R6+GiSh3V8vHkFKhVbKffqlkP qfpHO7dGwwgouPQlYqp595r3Jc229H8M7ZlKbi+BWj+fU7XxXLfLsESh+2HpnEGJYxJD Y9/A== 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=CqhS/DjApfCwkLFCvP6kllDyz5SMs1FoNvFzUNiKyfA=; b=xMwcHWPhl7mM/aDP7kmn4Zo1G8cg9ouz2XtN7/LnqBWe3lOXPp/460x1kp3qrggU8g i7yQbE+uRj692aVZmWnwg7tu/5rnUQkROUuLttivrSpkRnQ2jpYEJLlJl5ucpZ7J/16f 4Nyt5hYCZb0JEcxbCM1ptV/d/wNdItqQmEAVBoeCEmht8kR0ELWNTR4fFWFYTozyaYGZ rufvDf5jTbYdVXLiym9f99EsowWu2mCJmXjJczXNPOJDqD9Lb/DlgpG1rWopnN4QrU3U 5pOXABxbGN4tQxs2SACYqKxHOBPT5I0XZlBxJYHbfyyK7o2BpxUj8HjTNiAVP9dhedPH RByg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=d8SS8qgw; 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 c5si3477097eds.128.2021.05.13.12.37.41; Thu, 13 May 2021 12:38:04 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=d8SS8qgw; 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 S233874AbhEMNRT (ORCPT + 99 others); Thu, 13 May 2021 09:17:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233463AbhEMNRD (ORCPT ); Thu, 13 May 2021 09:17:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23421C061574; Thu, 13 May 2021 06:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=CqhS/DjApfCwkLFCvP6kllDyz5SMs1FoNvFzUNiKyfA=; b=d8SS8qgwVEBfC/z564sa+2N9DF Wzl+TkORKwOMT+wsnvHLbotWjCbktxMqEnEd2QDACc1JoP6nuoT0gG+x6tSw0bH/nMZmg3vcFw6bk T9uVRNj0t06RnJG86r4+uzrnLHwlQSMb56hyRRPYQTBnk6U+x/MSZe3SCKnWIz/ozlPPAYy1gj+4q HvSfyuYYfdpXO5LS6n3ggU8Sml9RM0tpfiBgwZrFWjnivtBXZC1AjPstssMqYjg0jJRha16bVMCV1 kn3Rz01pS2/4jQSLQY4ZUixfzSpIiGfI8UfZ528pvwk//NUchwwjGJ7iq2xlPLP94iBxGBki80CBw OJddTV1Q==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lhBB6-009RwN-5m; Thu, 13 May 2021 13:15:10 +0000 Date: Thu, 13 May 2021 14:15:00 +0100 From: Matthew Wilcox To: Ralph Campbell Cc: linux-mm@kvack.org, kvm-ppc@vger.kernel.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dan Williams , Ira Weiny , Jerome Glisse , John Hubbard , Alistair Popple , Christoph Hellwig , Jason Gunthorpe , Bharata B Rao , Zi Yan , "Kirill A . Shutemov" , Yang Shi , Paul Mackerras , Ben Skeggs , Andrew Morton Subject: Re: [RFC PATCH v3 0/2] mm: remove extra ZONE_DEVICE struct page refcount Message-ID: References: <20201001181715.17416-1-rcampbell@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201001181715.17416-1-rcampbell@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 01, 2020 at 11:17:13AM -0700, Ralph Campbell wrote: > This is still an RFC because after looking at the pmem/dax code some > more, I realized that the ZONE_DEVICE struct pages are being inserted > into the process' page tables with vmf_insert_mixed() and a zero > refcount on the ZONE_DEVICE struct page. This is sort of OK because > insert_pfn() increments the reference count on the pgmap which is what > prevents memunmap_pages() from freeing the struct pages and it doesn't > check for a non-zero struct page reference count. > But, any calls to get_page() will hit the VM_BUG_ON_PAGE() that > checks for a reference count == 0. This seems to have gone quiet. What needs to happen to resurrect this?