From: Jeff Moyer Subject: Re: [RFC PATCH 0/7] dax, ext4: Synchronous page faults Date: Thu, 27 Jul 2017 10:09:07 -0400 Message-ID: References: <20170727131245.28279-1-jack@suse.cz> Mime-Version: 1.0 Content-Type: text/plain Cc: , Christoph Hellwig , linux-nvdimm@lists.01.org, Dave Chinner , linux-xfs@vger.kernel.org, Andy Lutomirski , linux-ext4@vger.kernel.org To: Jan Kara Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58842 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751579AbdG0OJJ (ORCPT ); Thu, 27 Jul 2017 10:09:09 -0400 In-Reply-To: <20170727131245.28279-1-jack@suse.cz> (Jan Kara's message of "Thu, 27 Jul 2017 15:12:38 +0200") Sender: linux-ext4-owner@vger.kernel.org List-ID: Jan Kara writes: Hi, Jan, Thanks for looking into this! > There are couple of open questions with this implementation: > > 1) Is it worth the hassle? > 2) Is S_SYNC good flag to use or should we use a new inode flag? > 3) VM_FAULT_RO and especially passing of resulting 'pfn' from > dax_iomap_fault() through filesystem fault handler to dax_pfn_mkwrite() in > vmf->orig_pte is a bit of a hack. So far I'm not sure how to refactor > things to make this cleaner. 4) How does an application discover that it is safe to flush from userspace? -Jeff