From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by kanga.kvack.org (Postfix) with ESMTP id 72F8A6B0005 for ; Tue, 23 Feb 2016 04:45:06 -0500 (EST) Received: by mail-pa0-f53.google.com with SMTP id fl4so107760034pad.0 for ; Tue, 23 Feb 2016 01:45:06 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ku4si46191856pab.153.2016.02.23.01.45.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Feb 2016 01:45:05 -0800 (PST) Date: Tue, 23 Feb 2016 01:45:01 -0800 From: Christoph Hellwig Subject: Re: [RFC 0/2] New MAP_PMEM_AWARE mmap flag Message-ID: <20160223094501.GA32294@infradead.org> References: <56CA1CE7.6050309@plexistor.com> <56CA2AC9.7030905@plexistor.com> <20160221223157.GC25832@dastard> <20160222174426.GA30110@infradead.org> <20160222180350.GA9866@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Jeff Moyer Cc: Christoph Hellwig , Dave Chinner , Dan Williams , Arnd Bergmann , linux-nvdimm , Oleg Nesterov , linux-mm , Mel Gorman , Johannes Weiner , "Kirill A. Shutemov" On Mon, Feb 22, 2016 at 01:52:28PM -0500, Jeff Moyer wrote: > I see. So, at write fault time, you're saying that new blocks may be > allocated, and that in order to make that persistent, we need a sync > operation. Yes. > Presumably this MAP_SYNC option could sync out the necessary > metadata updates to the log before returning from the write fault > handler. The arguments against making this work are that it isn't > generally useful, and that we don't want more dax special cases in the > code. Did I get that right? The argument is that it's non-trivial, and we haven't even sorted out basic semantics for directly mapped storaged. Let's finish up getting this right, and then look into optimizing it further in the next step. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org