Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752495AbbEGRmy (ORCPT ); Thu, 7 May 2015 13:42:54 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:35469 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbbEGRms (ORCPT ); Thu, 7 May 2015 13:42:48 -0400 MIME-Version: 1.0 In-Reply-To: <20150507173641.GA21781@gmail.com> References: <20150506200219.40425.74411.stgit@dwillia2-desk3.amr.corp.intel.com> <20150507173641.GA21781@gmail.com> Date: Thu, 7 May 2015 10:42:46 -0700 Message-ID: Subject: Re: [PATCH v2 00/10] evacuate struct page from the block layer, introduce __pfn_t From: Dan Williams To: Ingo Molnar Cc: Linus Torvalds , Linux Kernel Mailing List , Boaz Harrosh , Jan Kara , Mike Snitzer , Neil Brown , Benjamin Herrenschmidt , Dave Hansen , Heiko Carstens , Chris Mason , Paul Mackerras , "H. Peter Anvin" , Christoph Hellwig , Alasdair Kergon , "linux-nvdimm@lists.01.org" , Mel Gorman , Matthew Wilcox , Ross Zwisler , Rik van Riel , Martin Schwidefsky , Jens Axboe , "Theodore Ts'o" , "Martin K. Petersen" , Julia Lawall , Tejun Heo , linux-fsdevel , Andrew Morton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1163 Lines: 26 On Thu, May 7, 2015 at 10:36 AM, Ingo Molnar wrote: > > * Dan Williams wrote: > >> > Anyway, I did want to say that while I may not be convinced about >> > the approach, I think the patches themselves don't look horrible. >> > I actually like your "__pfn_t". So while I (very obviously) have >> > some doubts about this approach, it may be that the most >> > convincing argument is just in the code. >> >> Ok, I'll keep thinking about this and come back when we have a >> better story about passing mmap'd persistent memory around in >> userspace. > > So is there anything fundamentally wrong about creating struct page > backing at mmap() time (and making sure aliased mmaps share struct > page arrays)? Something like "get_user_pages() triggers memory hotplug for persistent memory", so they are actual real struct pages? Can we do memory hotplug at that granularity? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/