From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752682AbdHUJRO (ORCPT ); Mon, 21 Aug 2017 05:17:14 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:39725 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751831AbdHUJRM (ORCPT ); Mon, 21 Aug 2017 05:17:12 -0400 Date: Mon, 21 Aug 2017 11:16:57 +0200 From: Peter Zijlstra To: Jan Kara Cc: Dan Williams , Christoph Hellwig , "Darrick J. Wong" , "linux-nvdimm@lists.01.org" , Dave Chinner , "linux-kernel@vger.kernel.org" , linux-xfs@vger.kernel.org, Jeff Moyer , Alexander Viro , Andy Lutomirski , linux-fsdevel , Ross Zwisler , Linux API Subject: Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap Message-ID: <20170821091657.5bmigyfo7nzglak6@hirez.programming.kicks-ass.net> References: <20170805095013.GC14930@lst.de> <20170811104429.GA13736@lst.de> <20170812073349.GA12679@lst.de> <20170813092436.GB32112@lst.de> <20170814124059.GC17820@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170814124059.GC17820@quack2.suse.cz> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 14, 2017 at 02:40:59PM +0200, Jan Kara wrote: > Hum, this proposal (and the problems you are trying to deal with) seem very > similar to Peter Zijlstra's mpin() proposal from 2014 [1], just moved to > the DAX area (and so additionally complicated by the fact that filesystems > now have to care). The patch set was not merged due to lack of interest I > think but it looked sensible and the proposed API would make sense for more > stuff than just DAX so maybe it would be better than MAP_DIRECT flag? > > [1] https://lwn.net/Articles/600502/ Thanks for thinking of that. The main sticking point was that I never got it working for RDMA, I got hopelessly lost in that code. Also I feel (and still do) that mpin() would be very useful for CMA, mpin() would be a good moment to migrate/compact the pages and get out of the way.