Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1076093pxb; Thu, 21 Oct 2021 15:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzgR5c6tmAQri2YasrtY7TMPeSSD6CkQPAPmhmn8NShgGaPE3aOibyAD55Up+3X6eLEBzq X-Received: by 2002:a05:6402:51cf:: with SMTP id r15mr11760485edd.60.1634854912522; Thu, 21 Oct 2021 15:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634854912; cv=none; d=google.com; s=arc-20160816; b=rKVyqRQqMVoAT1TS0x7r1ufvFXjd9gkuHEwtb1L8aHEvBsVcZ+1+wSeFfPdipOjNcd HODKLW7VxlZ+yQilkHAfK7X+EZ/hvWbpaC+0GkM7o4P3yQgKrzm1+p4F+1yFHCDl2rlU 4GH/ZTb9lbEHrrR0OhTmYFG/Dh3AqTHXK7mTMtaAFpb/wL+iASNIN6xjSHYMxI0nKJ3n eJUFJiowEGcP4rtbV1NERsJBCdLrPbSA1izpuOhlNdric4TObSx6iOAtcjQSoG7v0ZZv TyWneLrNv8vLFhHTHfaQsWUSuuX3hpN1nm6eRgcOZJOzdH+vvq13V7RJpG0PGWGyZ7DT 4AXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tSebnyNuofgB+vH+7uyEvZ4tUVxD1t6yZgP5DdCdt6U=; b=SCnQsnNrHmMCkI8arMLd7Ei+81eziBA6Grvl5ZOw5XgG9v9hUt6acw0jMtuuyVLnyD 9DfpAYQw9t/JrGBn1ppiErC9yekY7scQ2neOcRN1BBP/JQu72jPNKhNFoUX6QwVFB3He oMMVnfaJXIzxvwNAnjjFZVPorD10/nWIltHIY72HRMUJ54HuUC6lJsQmamnPhXl6WJc9 UwZ+oIc+43R81ghAOdmskgqzzixD0AwE8YbeFWpDEobhW21pjxb8xKekpiFe6drHca0P twWzRMi/aFEuFAPhx8cZ49PYqnvhwmZGK1uApIbeK+li2uPR4rNbvb9ULVDqhwIutHpL zPQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@osandov-com.20210112.gappssmtp.com header.s=20210112 header.b=F7yvuj7n; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si211775edv.491.2021.10.21.15.20.50; Thu, 21 Oct 2021 15:21:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@osandov-com.20210112.gappssmtp.com header.s=20210112 header.b=F7yvuj7n; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232192AbhJUWW6 (ORCPT + 99 others); Thu, 21 Oct 2021 18:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231952AbhJUWW5 (ORCPT ); Thu, 21 Oct 2021 18:22:57 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E712C061224 for ; Thu, 21 Oct 2021 15:20:41 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id n11-20020a17090a2bcb00b001a1e7a0a6a6so534766pje.0 for ; Thu, 21 Oct 2021 15:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tSebnyNuofgB+vH+7uyEvZ4tUVxD1t6yZgP5DdCdt6U=; b=F7yvuj7nSVzEl2W8Oqbp8atFxmQ6r9Dbqs8V0fbJgxGY00MyLd4k7jqKWORSw8mHY3 IxDvRVo4cDtbcTi+/kKA0Egwg6fwcXP4oiOtpnrGNLmO/C442vDZiAmDs7CTs8KbHnL0 kCfPRr95kbaIPqVIEMaFt3kyXUmXLF1FErwp9s/A5nE3+S3NMzLTtwdHdwqBgOjYLvX6 WYBTP6OervOJQWbY/Vx42YzjOvR/cqpxNWYc3dmwBm4LRWFBE/nHVqb6lPrrGCjmZ/nt d5x2bQUiW2+vfgaGS/ipy/W+4F2BD7/kMrpChjIWchBsBRmebimx5o7b+OPOqd72o4oe ThBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tSebnyNuofgB+vH+7uyEvZ4tUVxD1t6yZgP5DdCdt6U=; b=EP9nW041X3BrNXQtHxynIBTwSh+ThIRq8EFELWdj1SJVZKARqd8J2vREsy5v230lnn y2hE6rMpD32i4+KtsA8frTavIArYTX8EC90WSDdp4LRICJg9S/+mHHIeN/sUSohgG2S9 0RYLCGp3/Qv52JtB8Ut6pkbEk4dJrWrsnWdR96CFxAqGj7x0zarQq7kDIfo6LfnMH6QI WNbQHe24HqMnzKV29LyKQmbQyGkBcB7kVK687LF1odz0p3Ipk9zhKVTrS1yzXT8huBMM 1C6Bvm7eTBVqCwbzmS3xmTcIeU8xVy+sUjFrAryGAwmU87qafMVYxfN83jZhANgAUjEF 9oYQ== X-Gm-Message-State: AOAM531hBgn+un/NoQEYpsMgtP9Y/e66jEcass1JxVpyCz0Mz5TsU8qf ZjKwD9s20KVu9yw7Rpf2yMAegQ== X-Received: by 2002:a17:90b:1041:: with SMTP id gq1mr9693769pjb.31.1634854840491; Thu, 21 Oct 2021 15:20:40 -0700 (PDT) Received: from relinquished.localdomain ([2620:10d:c090:400::5:69a9]) by smtp.gmail.com with ESMTPSA id n22sm6962317pjv.22.2021.10.21.15.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 15:20:40 -0700 (PDT) Date: Thu, 21 Oct 2021 15:20:36 -0700 From: Omar Sandoval To: David Howells Cc: linux-cachefs@redhat.com, ceph-devel@vger.kernel.org, linux-afs@lists.infradead.org, Anna Schumaker , linux-nfs@vger.kernel.org, Kent Overstreet , linux-mm@kvack.org, Matthew Wilcox , linux-fsdevel@vger.kernel.org, Dave Wysochanski , Marc Dionne , Trond Myklebust , Shyam Prasad N , Eric Van Hensbergen , v9fs-developer@lists.sourceforge.net, linux-cifs@vger.kernel.org, Latchesar Ionkov , Jeff Layton , Steve French , Al Viro , Dominique Martinet , Ilya Dryomov , Trond Myklebust , Jeff Layton , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/67] fscache: Rewrite index API and management system Message-ID: References: <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Oct 18, 2021 at 03:50:15PM +0100, David Howells wrote: > > Here's a set of patches that rewrites and simplifies the fscache index API > to remove the complex operation scheduling and object state machine in > favour of something much smaller and simpler. It is built on top of the > set of patches that removes the old API[1]. > > The operation scheduling API was intended to handle sequencing of cache > operations, which were all required (where possible) to run asynchronously > in parallel with the operations being done by the network filesystem, while > allowing the cache to be brought online and offline and interrupt service > with invalidation. > > However, with the advent of the tmpfile capacity in the VFS, an opportunity > arises to do invalidation much more easily, without having to wait for I/O > that's actually in progress: Cachefiles can simply cut over its file > pointer for the backing object attached to a cookie and abandon the > in-progress I/O, dismissing it upon completion. > > Future work there would involve using Omar Sandoval's vfs_link() with > AT_LINK_REPLACE[2] to allow an extant file to be displaced by a new hard > link from a tmpfile as currently I have to unlink the old file first. I had forgotten about that. It'd be great to finish that someday, but given the dead-end of the last discussion [1], we might need to hash it out the next time we can convene in person. 1:https://lore.kernel.org/linux-fsdevel/364531.1579265357@warthog.procyon.org.uk/