Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp662041rwd; Thu, 1 Jun 2023 05:12:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GLSlk1F5sM19U8TKoU+BRG8I6BFrC/Pm7fWphMRsvXsGY2JcMkLnFZfWciMO46glfbIFI X-Received: by 2002:a05:6a20:258c:b0:10b:e88f:5983 with SMTP id k12-20020a056a20258c00b0010be88f5983mr9640749pzd.43.1685621533829; Thu, 01 Jun 2023 05:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685621533; cv=none; d=google.com; s=arc-20160816; b=zhWpFrS6lEhDzH5/T0PFuSdPH6DukiUh6PHn1xuYMbZDWEJ9W5LZbtjqI7iHNLdv+1 WYV5kiO5+bK+qZXm0m/Am4nnrUVV72iUVTYRgt+Klw/iSdaCrnDTuJyks4CvORO7TIex 16eBXUtes53GIV8tDRJPmepY1RA3GaWV6wvs3SovpVjbd6xh5jNnGMSI5F3ba3PyxWQX QvCYoc2eF20uRKUmELw6pEIfU5BsdWCVJiT4VlIDjSxBi7l92d4cz8GeF0sFTY1JNSJ+ jK/rwbtgEXWVnUegqr+kZTG5TYX6+Wigh28B04FPIG/9FmT5awZwRILxE+DcsEQLianP wBnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JHH9IVRD4RODTPYwIZs5ad4p+1OI1MrFohdy2mmlmv8=; b=zTJ6/XZmiq2AIlFvVXVKv5Y6Q2+gOPu1ZCatp2/qQOVB2mecAoc3/N8B8qmfGgk/mN XmcchPn5YS+2xdKMaJI/TnEPWMbRbmfP1tzPxaHib41oNNopgncVZP9qOYrAL0Ge6kbp Qx3sE4hk4clYbUyO6zeBvCgk2UG/wK0NKmhFse8ZDmzhQLePFJqrpqM+O14PaSJsUJam q1o2PhzE5Me63J9uRquv9xIhh5LBZMb+lJyJUcSp/e20dESBs79oMKaLfe+jDxjVWLY6 p4gQAJI7rKmbmLJMXjz0sCidFJNWQzpNbm7o9SGpOr5/WilqYI2GjwHKoE85T0gCpSBN fqLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=IN19eBp+; 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=szeredi.hu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o7-20020a170902778700b001afd4fceea5si2576589pll.617.2023.06.01.05.11.56; Thu, 01 Jun 2023 05:12:13 -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=@szeredi.hu header.s=google header.b=IN19eBp+; 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=szeredi.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbjFALvI (ORCPT + 99 others); Thu, 1 Jun 2023 07:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbjFALvF (ORCPT ); Thu, 1 Jun 2023 07:51:05 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA60A136 for ; Thu, 1 Jun 2023 04:51:01 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-96fd3a658eeso98702566b.1 for ; Thu, 01 Jun 2023 04:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1685620260; x=1688212260; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JHH9IVRD4RODTPYwIZs5ad4p+1OI1MrFohdy2mmlmv8=; b=IN19eBp+DEeoqg2XE3wKTDWjGbsG4E2KNoB2aEX766YoWgKA5CpYwPPoxpoztZ9Fpl WUWG0JRY71wtP+xz5w7u2QTm6kGmsMCfvpwHC+NThMX9S1A8QimqaZCBr3qEarGkexDQ eHK9T9MtAr+da9LKKJuHYvVyKwlJVNAhM5Cak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685620260; x=1688212260; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JHH9IVRD4RODTPYwIZs5ad4p+1OI1MrFohdy2mmlmv8=; b=bbNEoA5Bk84/s1t9vReQpV/kgRECItvNWIoi6JnJ0mAMoCXwsFgwk6NQKJoSs+R4Lo XOqjwWqCG+i9WP8y47/J9hq48MRTaB9OVE6TWKCrz0pwu/K9IXMJt4iF9iEVBnY8S1Wa h7/XAbEJ4Jw/1ioqkoXpq/0K9LGXikYSm8DE0J8OdTHGxNLD+pO3qukOVUDCtZ4ZVsKw +Bpf0uxXQBMlfWKMtoOvebFsTgjM45BbaT7aS5Ubyg+FPrlVuzIotlw2EHA/FGrzgvBk //hjjsrMZ9c8SIxa1nhpLbtTJ/UiABBdr8gaAXEcZSSRdxJqz9zk1oCDdzEgkFHISxNQ qbDQ== X-Gm-Message-State: AC+VfDyGpTrMAx1vMLO36+NgMbQCinIRj1QWvwfhfRVI1oNeB0DCHHo3 p+DxgKGmowDFdvvX31mlWjfRWZWEtQTj/eCayFpoIQ== X-Received: by 2002:a17:907:7291:b0:96f:4ee4:10d4 with SMTP id dt17-20020a170907729100b0096f4ee410d4mr7779167ejc.43.1685620260403; Thu, 01 Jun 2023 04:51:00 -0700 (PDT) MIME-Version: 1.0 References: <20220517100744.26849-1-dharamhans87@gmail.com> In-Reply-To: From: Miklos Szeredi Date: Thu, 1 Jun 2023 13:50:49 +0200 Message-ID: Subject: Re: [PATCH v5 0/3] FUSE: Implement atomic lookup + open/create To: Bernd Schubert Cc: Dharmendra Singh , Vivek Goyal , "linux-fsdevel@vger.kernel.org" , fuse-devel , "linux-kernel@vger.kernel.org" , Horst Birthelmer Content-Type: text/plain; charset="UTF-8" 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, 1 Jun 2023 at 13:17, Bernd Schubert wrote: > > Hi Miklos, > > On 5/19/22 11:39, Miklos Szeredi wrote: > > On Tue, 17 May 2022 at 12:08, Dharmendra Singh wrote: > >> > >> In FUSE, as of now, uncached lookups are expensive over the wire. > >> E.g additional latencies and stressing (meta data) servers from > >> thousands of clients. These lookup calls possibly can be avoided > >> in some cases. Incoming three patches address this issue. > >> > >> > >> Fist patch handles the case where we are creating a file with O_CREAT. > >> Before we go for file creation, we do a lookup on the file which is most > >> likely non-existent. After this lookup is done, we again go into libfuse > >> to create file. Such lookups where file is most likely non-existent, can > >> be avoided. > > > > I'd really like to see a bit wider picture... > > > > We have several cases, first of all let's look at plain O_CREAT > > without O_EXCL (assume that there were no changes since the last > > lookup for simplicity): > > > > [not cached, negative] > > ->atomic_open() > > LOOKUP > > CREATE > > > > [...] > > > [not cached] > > ->atomic_open() > > OPEN_ATOMIC > > new patch version is eventually going through xfstests (and it finds > some issues), but I have a question about wording here. Why > "OPEN_ATOMIC" and not "ATOMIC_OPEN". Based on your comment @Dharmendra > renamed all functions and this fuse op "open atomic" instead of "atomic > open" - for my non native English this sounds rather weird. At best it > should be "open atomically"? FUSE_OPEN_ATOMIC is a specialization of FUSE_OPEN. Does that explain my thinking? Thanks, Miklos