Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36304816rwd; Mon, 10 Jul 2023 22:13:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlHy81qkZoDpq08efAZ8a+vvnWjnH+jNgoXncg2xLwgF2mP7chvpRBneQDWcTP+T4gZ0O88H X-Received: by 2002:a05:6402:1857:b0:51e:281a:66a4 with SMTP id v23-20020a056402185700b0051e281a66a4mr14673473edy.38.1689052391481; Mon, 10 Jul 2023 22:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689052391; cv=none; d=google.com; s=arc-20160816; b=aM9HmUZteTMhtXhOjVn0XDGmkWnA7ppjizJrot01WAtn8L6JBg3V/jBQyRDX9sCxcS R4WVoQy75cg1C7QJW1mhEmqwS4bIzIenqdMWW/fOzeW/Ajp4kY9XbKFM3T50UScT53WA yDXhRhiazfbSzdmTyk4Z7Ctdmn8WIw7saTFOppAuntZ4NCznk0prFfX44D5F7YYJNdkR W8T3J6o9sS7LY5AwGObdUTOwKA7a9KzQ8HN9N9NgKXfHMYlNY9TtqRhWvGNPFNHc75FO rBPjpzk226dmEnVEARlOSRgPa594r81ALiMpVeICXKqcUm8OmJfaINRJex6/gt6eo91D ZNFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nq3lPXWT5aXljLcGjDhakg0e9OKm0kYjlfzX3G1YySM=; fh=AbZLXPTwDd6D4T6qkHRVC4qv5VyfsE5N5bMl5jebUv8=; b=ASN07ZLwpNNWu9n4CmXgpMer5fuMtuKvoTbfeKHXj8zA3Qk5cJO7WDRPq6NiXZpOKg 22GQtIXGkSXgC/8huvWUILPtCCgoSOd4SFF+H/q9TQT95ARP7bsUUAP5hROGifr3y8bk OpeZe5iiIELi3eOaaj34JQ+tGSFl7kCHxmGg+2RJdfug0uQAjy6BIhpjtHWEqcWNMiKZ ONy8EntC6FK/0lksN+JnBfWejn/7Kj/O+e9jdT/ZHnP8vptlAhyqadOc1OgC0niEUIBr lQmgiJAY+M5JgGab/VsxBnJFBpksdO+KLYO64oo1dxs6LUl5RbXVRwpkU/7b/DNMHxPr Ivaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="U/k0gmhK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a50ed8e000000b0051a7bccf383si1215971edr.86.2023.07.10.22.12.48; Mon, 10 Jul 2023 22:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b="U/k0gmhK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjGKEg7 (ORCPT + 99 others); Tue, 11 Jul 2023 00:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbjGKEgy (ORCPT ); Tue, 11 Jul 2023 00:36:54 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 069C3E4B for ; Mon, 10 Jul 2023 21:36:29 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3a3a8d21208so4640791b6e.0 for ; Mon, 10 Jul 2023 21:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1689050188; x=1691642188; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nq3lPXWT5aXljLcGjDhakg0e9OKm0kYjlfzX3G1YySM=; b=U/k0gmhKprSH8HHPSLhEKtiEwMpj3UCthlCHSjtbF4pXeTx53Jd5X+28zSCp3EQVWN gXH2/NxX1zWMZCkwtk1MolZBOeamaf25jM/L7DL/3kmjblno55kjVz0wZa6B6lfv2fEY gYjG8h/brzAri8nVPWa/vxt9zxQcmjY+Yv3+TGwJuhyLNCOHN+3PR5VG8+qY/EixG2AY OV/2xCqVSI81tQmCUeAcc1ZyLSQo8kSipb74slZE04gzTTzObNMQVx6jfu9EojvDiX+X Q7NDao/lscWvdSB3CkmJM9vpJyKRn4RqjJ7mDz85hJYD2PixQfn3Xx3V7DzZNj/Lofcy q+CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689050188; x=1691642188; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nq3lPXWT5aXljLcGjDhakg0e9OKm0kYjlfzX3G1YySM=; b=QeZJCR5XYZd7Jw+qVZf3Gh+t/4Bmwf3EZMaCuOwFbfYfgdFRb3uGogdQJyXzjoxqHU t8m31GJzhapww7ey4buT3Ura4vp77i7Z1Zf0+2mKxGifOGHF6tfQV1zl/6GoNGiUjpbD wNAF8iaLWm1asDWYS7EcdWJPiWDv5eaMENAITvZ3ELmwdFzf+V6n1F081qgLNdQLVjQY NpbVYUW7MZwSkW2aQh6XZ/NYLx1LTqsNKgHLjL/ACqw5UwGIC7VF8Ro9jSOZH7tNIrnW RwDGPWJLTH5qq2YNt29JbnEaA22JK132+qx8LVUXdkZ5aOlSom0X3zg7KZ8qnPm3kwwo 3kgA== X-Gm-Message-State: ABy/qLY5GAY2NFXNQGebr/YBeqP8o6mh4FgkA1WkNRp2NOu6l9apZzcd On8VHKmMRYHhRDx+n0X8wT3l/w== X-Received: by 2002:a05:6358:9910:b0:134:ddad:2b4f with SMTP id w16-20020a056358991000b00134ddad2b4fmr14191945rwa.18.1689050188217; Mon, 10 Jul 2023 21:36:28 -0700 (PDT) Received: from localhost.localdomain ([139.177.225.236]) by smtp.gmail.com with ESMTPSA id ij9-20020a170902ab4900b001b9de67285dsm755259plb.156.2023.07.10.21.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 21:36:27 -0700 (PDT) From: Jiachen Zhang To: Miklos Szeredi , Jonathan Corbet , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: me@jcix.top, Jiachen Zhang Subject: [PATCH 0/5] FUSE consistency improvements Date: Tue, 11 Jul 2023 12:34:00 +0800 Message-Id: <20230711043405.66256-1-zhangjiachen.jaycee@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset resends some patches that related to FUSE consistency improvements in the mailing list. The 1st patch fixes a staleness-checking issue, which is the v2 version of the patch[1]. The 2nd patch is a resend version of the patch[2] with its commit message rewritten. The 3rd and 4th patches are new versions of the patch[3] and the patch[4], FUSE filesystems are able to implement the close-to-open (CTO) consistency semantics with the help of these two patches. The 5th patch is a new patch which improves the explanation of FUSE cache mode and consistency models in the documentation. [1] [PATCH] fuse: initialize attr_version of new fuse inodes by fc->attr_version, https://lore.kernel.org/lkml/20221111093702.80975-1-zhangjiachen.jaycee@bytedance.com/ [2] [PATCH] fuse: invalidate dentry on EEXIST creates or ENOENT deletes, https://lore.kernel.org/lkml/20220805131823.83544-1-zhangjiachen.jaycee@bytedance.com/ [3] [PATCH] fuse: add FOPEN_INVAL_ATTR, https://lore.kernel.org/lkml/20220608104202.19461-1-zhangjiachen.jaycee@bytedance.com/ [4] [PATCH] fuse: writeback_cache consistency enhancement (writeback_cache_v2), https://lore.kernel.org/lkml/20220624055825.29183-1-zhangjiachen.jaycee@bytedance.com/ Jiachen Zhang (5): fuse: check attributes staleness on fuse_iget() fuse: invalidate dentry on EEXIST creates or ENOENT deletes fuse: add FOPEN_INVAL_ATTR fuse: writeback_cache consistency enhancement (writeback_cache_v2) docs: fuse: improve FUSE consistency explanation Documentation/filesystems/fuse-io.rst | 32 +++++++++++++++-- fs/fuse/dir.c | 11 +++--- fs/fuse/file.c | 35 +++++++++++++++++++ fs/fuse/fuse_i.h | 6 ++++ fs/fuse/inode.c | 49 +++++++++++++++++++++++++-- include/uapi/linux/fuse.h | 11 +++++- 6 files changed, 135 insertions(+), 9 deletions(-) -- 2.20.1