From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by kanga.kvack.org (Postfix) with ESMTP id 527FC6B0003 for ; Thu, 26 Apr 2018 03:27:51 -0400 (EDT) Received: by mail-it0-f71.google.com with SMTP id p12-v6so15896247itc.7 for ; Thu, 26 Apr 2018 00:27:51 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id r21-v6sor7491325itc.108.2018.04.26.00.27.49 for (Google Transport Security); Thu, 26 Apr 2018 00:27:50 -0700 (PDT) Date: Thu, 26 Apr 2018 00:27:47 -0700 From: Omar Sandoval Subject: Re: [PATCH] iomap: add a swapfile activation function Message-ID: <20180426072747.GA25194@vader> References: <20180418025023.GM24738@magnolia> <20180424173539.GB25233@infradead.org> <20180425234622.GC1661@magnolia> <20180426055727.GA24887@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426055727.GA24887@infradead.org> Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Hellwig Cc: "Darrick J. Wong" , xfs , linux-fsdevel , linux-mm@kvack.org, Aleksei Besogonov On Wed, Apr 25, 2018 at 10:57:27PM -0700, Christoph Hellwig wrote: > On Wed, Apr 25, 2018 at 04:46:22PM -0700, Darrick J. Wong wrote: > > (I mean, we /could/ just treat the swapfile as an unbreakable rdma/dax > > style lease, but ugh...) > > That is what I think it should be long term, instead of a strange > parallel I/O path. > > But in the mean time we have a real problem with supporting swap files, > so we should merge the approaches from you and Aleksei and get something > in ASAP. I'm planning to do something along these lines for Btrfs, as well (have swap_activate add the swap extents itself), because the previous thing I tried with going through ->read_iter() and ->write_iter() ran into too many locking issues (i.e., GFP_NOFS can suddenly go through FS locks).