Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2010105pxb; Fri, 22 Oct 2021 11:56:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvoQBnqTqDJ6erNP7q2Wxikg2iGceEkT1J/YOuvF8IbMLAuIpEgCdyOaykZQ2DCmeRuMea X-Received: by 2002:a17:906:6a2a:: with SMTP id qw42mr1490306ejc.561.1634929003303; Fri, 22 Oct 2021 11:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634929003; cv=none; d=google.com; s=arc-20160816; b=d+6/dp5OLNV1NAJUMqzJXGU/rKONolSNCqU9kJw8Rx68IK1s5Y74Zxqtw59hXaP9ac ik9dg0sdii7z6w66GZZ58vqeIg4fYxWkRJmqY4XrOO1RVGAWmuQ5JPhrHvP9o7O+XR0r GPu93OulA2IeaoozSYcGEFWCCPCVBz2IA8xYGaJRi+tTjUcW07XftXaLnLts4+nolvk6 p97/dj37sGKvpVhRRsGRFH7DHjo2n0SLyiGYWWmcZdEe2unfZJb0RP9DOGQgZgaUo4bu x26PCTkRmaEo4aqczpEjj0pUXSvwZYwycmxTSlrvthDtqs2pgUYhbOiGMRUm6THL/9oP i9aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=tW1THt74zlEe0JuUHAuc3WzNTwwNynQeKBO1wEGMPGk=; b=aH1egE7Rs6Z3fwluNxwjy0PzvehcJwGt5dRdTOnw3Me/ssX+krWsuQGOdQ3M7xpvmp F9DyokgAnW01kDYcS65JVTMU8Dx0rV4o/uqDCIb+Sh8M4sctFv9xNZtp1Bmmt97Imhx7 ZiEklMCgV9RueSrSzEiitYExwvr2I36ZsHnxzsEx4oeN6e9ztky9shOPYad1ZXxmG99C XSSe/xcAYfenri4iU6X0uZP2FJHhuA15ZyHYEDKniSFZR3pW5CcufdwaGAvdf5zAStZc zp5/wt/++vbmm4wBbSSnfIHSi0gFgeGPBu3Ef36uHHB+E6BDg/KNpz47rSq30+vnS4pS H8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dQk+JBqP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o2si12402892ejc.426.2021.10.22.11.56.05; Fri, 22 Oct 2021 11:56:43 -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=@redhat.com header.s=mimecast20190719 header.b=dQk+JBqP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232375AbhJVSy4 (ORCPT + 99 others); Fri, 22 Oct 2021 14:54:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56832 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbhJVSyy (ORCPT ); Fri, 22 Oct 2021 14:54:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634928756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tW1THt74zlEe0JuUHAuc3WzNTwwNynQeKBO1wEGMPGk=; b=dQk+JBqP/CI2oRGIKyMOwoWWK+URmJ2cIxoELexdxuLa1iFv3A73M3zPNbbb9eiPfOmJfW pZJ61HMEPlVJXbqnfKFGZt/DIAFLBUycggTZsgoccs+RKO9v6Eth9t93Lp0+P1NGAqap88 rHRQHY7qNWoP7unMtyGAfTuq7M6pVwA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-339-LwTXxwRMMRqR8zd0PjpeHQ-1; Fri, 22 Oct 2021 14:52:31 -0400 X-MC-Unique: LwTXxwRMMRqR8zd0PjpeHQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3DAC8802B4F; Fri, 22 Oct 2021 18:52:28 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA62C60C04; Fri, 22 Oct 2021 18:52:19 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> To: Steve French Cc: David Howells , Omar Sandoval , Anna Schumaker , Kent Overstreet , Matthew Wilcox , Dave Wysochanski , Marc Dionne , Trond Myklebust , Shyam Prasad N , Eric Van Hensbergen , Latchesar Ionkov , Jeff Layton , Steve French , Al Viro , Dominique Martinet , Ilya Dryomov , Trond Myklebust , Jeff Layton , Linus Torvalds , linux-cachefs@redhat.com, v9fs-developer@lists.sourceforge.net, linux-afs@lists.infradead.org, ceph-devel , CIFS , linux-nfs , linux-mm , linux-fsdevel , LKML Subject: Re: [PATCH 00/67] fscache: Rewrite index API and management system MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1037423.1634928738.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Fri, 22 Oct 2021 19:52:18 +0100 Message-ID: <1037424.1634928738@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Steve French wrote: > On Thu, Oct 21, 2021 at 5:21 PM Omar Sandoval wrot= e: > > > > On Mon, Oct 18, 2021 at 03:50:15PM +0100, David Howells wrote: > > However, with the advent of the tmpfile capacity in the VFS, an opport= unity > > 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. > = > Have changes been made to O_TMPFILE? It is problematic for network > filesystems because it is not an atomic operation, and would be great if= it > were possible to create a tmpfile and open it atomically (at the file sy= stem > level). In this case, it's nothing to do with the network filesystem that's using = the cache per se. Cachefiles is using tmpfiles on the backing filesystem, so = as long as that's, say, ext4, xfs or btrfs, it should work fine. The backing filesystem also needs to support SEEK_HOLE and SEEK_DATA. I'm not sure I'd recommend putting your cache on a network filesystem. David