From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8B3DC433FE for ; Thu, 21 Oct 2021 22:20:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 33349610A3 for ; Thu, 21 Oct 2021 22:20:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 33349610A3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=osandov.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 9BE87900002; Thu, 21 Oct 2021 18:20:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96C5C6B0071; Thu, 21 Oct 2021 18:20:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7E5F0900002; Thu, 21 Oct 2021 18:20:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0236.hostedemail.com [216.40.44.236]) by kanga.kvack.org (Postfix) with ESMTP id 6727C6B006C for ; Thu, 21 Oct 2021 18:20:42 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 1B89F181EC4B7 for ; Thu, 21 Oct 2021 22:20:42 +0000 (UTC) X-FDA: 78721865124.20.DFC2D22 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by imf25.hostedemail.com (Postfix) with ESMTP id 2ADEBB000192 for ; Thu, 21 Oct 2021 22:20:37 +0000 (UTC) Received: by mail-pj1-f47.google.com with SMTP id nn3-20020a17090b38c300b001a03bb6c4ebso1623151pjb.1 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=ox38XgLF2PRFhoYo6iq3e238DY0Qz4hPhYzT1DTKlZ5HY0YS3kOGsCnbYKVJFbJ9G2 4Oz9t0LA8mMyt/1zJgzxEI+Vzm+uhgjAcMwbj2vs07BIuAqc+yT9r11YR1iyI5xs7VxD eQCIFOa529NmQan10H+8FM9GanY7i75w0c9nyGqxIhsDZqujtnTgKKZZ9NDq7g3Z0lh/ HxLj5ZoiAsNVmCLFVA79/e8AFoaK8qvHpZRWrEvCnPLNkU7tNZaySNaTo12oxRS3Ahyk oFfe5Z3QT8lyZj5904vlIMnWt+dmrKPI/IIMoEVFlHvVnDkBJFFT+y18mGPYEXHasSBs 0dpg== X-Gm-Message-State: AOAM532jyOWBMQaBOEa3MwqPKD0W5rWtuIQfn3G4B4Rc8SnRZKiofLUi 3FACUQpTxE4Hg5vX2OFK2wsyLw== X-Google-Smtp-Source: ABdhPJwPCYMB5mXDn/964xDyH1fZwMCe0wUF+PkkOcGHAMNid1VUJ2pJtdpAOgiix5LMUW5jc9KZFg== 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> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 2ADEBB000192 X-Stat-Signature: hu9qb5e4t94kazptx5pym63dssek4ud9 Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=osandov-com.20210112.gappssmtp.com header.s=20210112 header.b=F7yvuj7n; spf=none (imf25.hostedemail.com: domain of osandov@osandov.com has no SPF policy when checking 209.85.216.47) smtp.mailfrom=osandov@osandov.com; dmarc=none X-HE-Tag: 1634854837-264722 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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/