Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5148700pxj; Wed, 9 Jun 2021 10:12:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyHqaQg5P0GKEN6eV8UttwPfTAAmaH2UnI5jfbb6oOGJJvC7BMgJHr6pcTi9OeEq/AVSpp X-Received: by 2002:aa7:c4d0:: with SMTP id p16mr514552edr.150.1623258774341; Wed, 09 Jun 2021 10:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258774; cv=none; d=google.com; s=arc-20160816; b=BJkRXPFG89Sp+uGcofiozyCvDCB9McLfXHrAH2rYRDsAsZqROqHfIkNbzKaiCQIqit KorcxLYkgjHT/1sq0XwpAH68G9nB1SeIQsiQXZESHulNpJF9YiKfjOQdZP2F7ao0HM6G Foevl2hGwenxt6mgrdBt/RFIpqW+1xRF2gT0+buQ97P+FudRojdBdt6No3GmDWoVVYnX 9X3oXAWhjD7IAwg6jE/ZYnFmp/xCOm3w1O0ouyVKwK144FYduZQaIXBwqumy+zdZgRMB BusymR3omLSOFi2bBv2HMFZOB/nTBAlHpHkI9EkSk1o6Anp8l/Wc5KsbbCegKGfg/Pnp vesA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=abuV9aCsn3LprgtCEwJWedajob9Hbsy8IIfvCvPjcK0=; b=QagN+qCLyNUbdaJb6kKdnvj7Z298U5eWFyEiGe7YoC6TB28V9YVU6IiDIrPXXw+/DF Kc56mnuyCbwE6SD7GD83aNspziU88DLQK6OSV0USoTdJl4b0OHZnMLHHe/mBrObAKLkr Jv2XHridwXF2Ko7fI6UByUVN4pbUezmj6fmYVMQAO2FsG9nLnUO11LElXwY5y0kmpDBn SFS36AU8fzIEezHUBRxFHDXPBCdwWebNd94ZzSHj51NaEaNR9Vcl/q8GOBGFqHWRuvPp eGSvpk8Q7KtKdivEonbzl34WEx91TH3EfvgSqykYG03LTRGA691tWQiz7wVQMAbryOIo IsTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si195141edr.567.2021.06.09.10.12.30; Wed, 09 Jun 2021 10:12:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237238AbhFIHsq convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Jun 2021 03:48:46 -0400 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:30002 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236397AbhFIHsn (ORCPT ); Wed, 9 Jun 2021 03:48:43 -0400 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-61-9YzCg37yOaSVqD-GcmL0zw-1; Wed, 09 Jun 2021 03:46:45 -0400 X-MC-Unique: 9YzCg37yOaSVqD-GcmL0zw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40AAE1922961; Wed, 9 Jun 2021 07:46:44 +0000 (UTC) Received: from bahia.lan (ovpn-112-166.ams2.redhat.com [10.36.112.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9C4BA60853; Wed, 9 Jun 2021 07:46:39 +0000 (UTC) Date: Wed, 9 Jun 2021 09:46:38 +0200 From: Greg Kurz To: Max Reitz Cc: Miklos Szeredi , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, virtio-fs@redhat.com, Vivek Goyal Subject: Re: [PATCH v2 0/7] fuse: Some fixes for submounts Message-ID: <20210609094638.197ca7fc@bahia.lan> In-Reply-To: References: <20210604161156.408496-1-groug@kaod.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kaod.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jun 2021 17:52:13 +0200 Max Reitz wrote: > On 04.06.21 18:11, Greg Kurz wrote: > > v2: > > > > - add an extra fix (patch 2) : mount is now added to the list before > > unlocking sb->s_umount > > - set SB_BORN just before unlocking sb->s_umount, just like it would > > happen when using fc_mount() (Max) > > - don't allocate a FUSE context for the submounts (Max) > > - introduce a dedicated context ops for submounts > > - add a extra cleanup : simplify the code even more with fc_mount() > > > > v1: > > > > While working on adding syncfs() support in FUSE, I've hit some severe > > bugs with submounts (a crash and an infinite loop). The fix for the > > crash is straightforward (patch 1), but the fix for the infinite loop > > is more invasive : as suggested by Miklos, a simple bug fix is applied > > first (patch 2) and the final fix (patch 3) is applied on top. > > Thanks a lot for these patches. I’ve had a style nit on patch 6, but > other than that, looks nice to me. > Thanks a lot for the review ! Cheers, -- Greg > Max >