Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp940930rdg; Wed, 11 Oct 2023 09:32:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHex5xkhmnwMulLlawPenSpLrEPeohLZNYvNAdd/WOyVHtKeeNuQF1erYuQa8jE2LKpiMN2 X-Received: by 2002:a05:6e02:1a45:b0:34b:aa34:a5c4 with SMTP id u5-20020a056e021a4500b0034baa34a5c4mr24901548ilv.30.1697041961026; Wed, 11 Oct 2023 09:32:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697041960; cv=pass; d=google.com; s=arc-20160816; b=sDepjelCOPB4+88n1c+WKtplu6iqtlu8Wl+q8uNAXlkCsopghL++wV6496UMlwDZHX Vb89+UTKHARyOJwpNdj1lcgQOP+joZvjYbu96wDZWfDpfk5eP0jKpWcxSyIW1yM7Y7X8 55LklAoIYH7IC6LLilflrAIjkOCfUgkAxab1iEcMFiwJA4ELyY3W8+r+bNeDM3hlGaHC y9QkHhFJockM9HTJlpAb/vpuQOzij9gqNAKlCaFbM5OObG+E2Cserims/Wq7qtOa5egE 39aY7Pp3/37G57CHYF35uX57EEX97s8uYUoR89Z4FUsuKY5sW80CBLl9P/AZlxtzBDQ3 7oMw== ARC-Message-Signature: i=2; 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=0mayE2tgx6c3p1kcbaVx2fh0JTz8yW+1IQDg6h9TpTk=; fh=w480KeFpO/ZHEnLgU3DQG0wlTLbiQEt2RtGKiy4II0U=; b=mdESepK15KkL2dWeotXWSMI/v1wrKjtgmVBFmwcfgf8j0rx6bx94eF4cj9rak5If14 ERftnLuStVipMZnaFX3fZKg4XSvm5oAe73cB5nDa4nt+sB+lgWNj8KB0xrUt2Nh5gMmL 3LSUl+5PjSDv9smnoQLVa4QkYqkNxzxSGj8H++ryJNsfOioDUX9OVSsjNBU/0PnlKg5a UJRPDC1z6C6onNybzPePxolgoqTB1NWzY4XVzkF8Q6hghPBHMEnjNViHriK5TdjAwoiw 8uN1QkH3GvP14/+3UBWNPf0A7oOvyTPS92ATOBlsNZFMQeAP7wXMfB+Fh1CjCpQZPJOf +Qpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b=DiCixaA5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h68-20020a636c47000000b00565325c6ca6si120581pgc.489.2023.10.11.09.32.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 09:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@templeofstupid.com header.s=dreamhost header.b=DiCixaA5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E819D81D2AF8; Wed, 11 Oct 2023 09:32:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbjJKQce (ORCPT + 99 others); Wed, 11 Oct 2023 12:32:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232864AbjJKQcd (ORCPT ); Wed, 11 Oct 2023 12:32:33 -0400 Received: from bird.elm.relay.mailchannels.net (bird.elm.relay.mailchannels.net [23.83.212.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4399294 for ; Wed, 11 Oct 2023 09:32:31 -0700 (PDT) X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8EA872C0E1B for ; Wed, 11 Oct 2023 16:32:30 +0000 (UTC) Received: from pdx1-sub0-mail-a302.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3083E2C0D9B for ; Wed, 11 Oct 2023 16:32:30 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1697041950; a=rsa-sha256; cv=none; b=QRhHGNymS/fqawLkf05SW6kb7HcMMjHau1lCuH6EMLwRnX/ncOiC1MVYxaaHRDu8HqJtZ1 53hzSVzYleyZlXvqq2h0h+goxMyZNF/Ag60ontf6b1c3zeBXHUOFW7xaS/GwDbTeiSgl22 haRZs7hANAnUE+9WSw/mz93Wjiz0t6A/2E8GvC3MZcB5ntgiVzinfaZYfKMzjNsmc+p6Vl KcRDSvC3YnA7/YIK6MAvcUhD23U7+iPnDChLRIu33be0XgJ47YBs/BYbcC/jiuPqLA40u/ bEHV7rLLWWNhpc2N3ynJrxe1wxiqlP1Akk5pxh7XLT4z4G/YtWw/YGyqmgj70A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1697041950; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0mayE2tgx6c3p1kcbaVx2fh0JTz8yW+1IQDg6h9TpTk=; b=kPoH3wnl9NREBD3Z2Gx6XlYddf1AB0u/QaR/ZLds/KyXw654FtVXaeyEiWxuvUfT5VcJW3 WZ/et+8OX8Ybo+hpBTN6pIDoIlD9mkrzfXCoLZNi644LAPplEG4mKBpbjnTmaJKtl8lPxP FsnozlIH3t4i4qZmgr5Ukw0hY3RnW8c8b+jcZRBeiZ61/pBA4BtkIkzPI/stOQdcagWDxJ jr3JjpxsEZyMxUJNSEtXRXXWz3lkESJbd+3fGr4g44nJc/Ypssz03IQNV0EsleXj/+64Ai 4fze8OMm/U5Y8gPqD4eEWc7Zb9xioZ/gXIPcAIgDM75aF+iJ+T/jDiRSo4y0bg== ARC-Authentication-Results: i=1; rspamd-7c449d4847-zs5ns; auth=pass smtp.auth=dreamhost smtp.mailfrom=kjlx@templeofstupid.com X-Sender-Id: dreamhost|x-authsender|kjlx@templeofstupid.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|kjlx@templeofstupid.com X-MailChannels-Auth-Id: dreamhost X-Abaft-Thread: 421cb3f4006b1906_1697041950411_3754967806 X-MC-Loop-Signature: 1697041950411:167981675 X-MC-Ingress-Time: 1697041950411 Received: from pdx1-sub0-mail-a302.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.100.230.33 (trex/6.9.1); Wed, 11 Oct 2023 16:32:30 +0000 Received: from kmjvbox (c-73-231-176-24.hsd1.ca.comcast.net [73.231.176.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kjlx@templeofstupid.com) by pdx1-sub0-mail-a302.dreamhost.com (Postfix) with ESMTPSA id 4S5JG5426tzQs for ; Wed, 11 Oct 2023 09:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=templeofstupid.com; s=dreamhost; t=1697041949; bh=0mayE2tgx6c3p1kcbaVx2fh0JTz8yW+1IQDg6h9TpTk=; h=Date:From:To:Cc:Subject:Content-Type; b=DiCixaA5ykv9lwYos/4ju2YzP14tpLY0ADNV2TQQ4BfLKMqCPYToEjobhk2amVouq Q2Rv3LrIZReR3WFFMNwO8+ahgJYAOca0rVNq4QWzqsLo2m4lJ9xHWkD/xTli8ah+Nx 6W+eI+ahs0sK/hdGtR/iqYDvRx36Xh3I06CViSpaxXcpklWAeohprXXYXNc3cV2wuh Or49uzfRR4nMf8U+a1M9v8TeiGy6xdPjjNQs8iZO9g/5DI59cc5t6yQQmFyXTZaqen wVeRKm0K/z00ie8tghfWFNFSL7XJL2WA15bGXWv3xZUIdE7mrv5kqON0l45UgsxnbT D5+plpiD4mCAg== Received: from johansen (uid 1000) (envelope-from kjlx@templeofstupid.com) id e005b by kmjvbox (DragonFly Mail Agent v0.12); Wed, 11 Oct 2023 09:32:20 -0700 Date: Wed, 11 Oct 2023 09:32:20 -0700 From: Krister Johansen To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, Miklos Szeredi , linux-kernel@vger.kernel.org, German Maglione , Greg Kurz , Max Reitz , Bernd Schubert Subject: Re: [resend PATCH v2 2/2] fuse: ensure that submounts lookup their parent Message-ID: <20231011163220.GA1970@templeofstupid.com> References: <45778432fba32dce1fb1f5fd13272c89c95c3f52.1696043833.git.kjlx@templeofstupid.com> <20231010023507.GA1983@templeofstupid.com> <20231011012545.GA1977@templeofstupid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 09:32:37 -0700 (PDT) On Wed, Oct 11, 2023 at 09:07:33AM +0200, Miklos Szeredi wrote: > On Wed, 11 Oct 2023 at 03:26, Krister Johansen wrote: > > > I am curious what you have in mind in order to move this towards a > > proper fix? I shied away from the approach of stealing a nlookup from > > mp_fi beacuse it wasn't clear that I could always count on the nlookup > > in the parent staying positive. E.g. I was afraid I was either going to > > not have enough nlookups to move to submounts, or trigger a forget from > > an exiting container that leads to an EBADF from the initial mount > > namespace. > > One idea is to transfer the nlookup to a separately refcounted object > that is referenced from mp_fi as well as all the submounts. That seems possible. Would the idea be to move all tracking of nlookup to a separate refcounted object for the particular nodeid, or just do this for the first lookup of a submount? Would you like me to put together a v3 that heads this direction? Thanks, -K