From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbdJCPhD (ORCPT ); Tue, 3 Oct 2017 11:37:03 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:36360 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751914AbdJCPhB (ORCPT ); Tue, 3 Oct 2017 11:37:01 -0400 Date: Tue, 3 Oct 2017 08:37:00 -0700 From: Christoph Hellwig To: Nicolas Pitre Cc: Christoph Hellwig , Richard Weinberger , Alexander Viro , "linux-mm@kvack.org" , linux-fsdevel , "linux-embedded@vger.kernel.org" , LKML , Chris Brandt Subject: Re: [PATCH v4 4/5] cramfs: add mmap support Message-ID: <20171003153659.GA31600@infradead.org> References: <20170927233224.31676-1-nicolas.pitre@linaro.org> <20170927233224.31676-5-nicolas.pitre@linaro.org> <20171001083052.GB17116@infradead.org> <20171003145732.GA8890@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 03, 2017 at 11:30:50AM -0400, Nicolas Pitre wrote: > Unless you have a better scheme altogether to suggest of course, given > the existing constraints. I still can't understand why this convoluted fault path that finds vma, attempts with all kinds of races and then tries to update things like vm_ops is even nessecary. We have direct mappings of physical address perfectly working in the DAX code (even with write support!) or in drivers using remap_pfn_range so a really good explanation why neither scheme can be used is needed first.