Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3078411ioo; Tue, 24 May 2022 12:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPzx1cYRcRUdwtEx+cZ2Sh022OEXmEkT9abDMrGIFsen1G2kmc0f4jdlYZAfU2WLk5hg/G X-Received: by 2002:aa7:95b9:0:b0:518:9c47:e6b2 with SMTP id a25-20020aa795b9000000b005189c47e6b2mr11822274pfk.66.1653420620992; Tue, 24 May 2022 12:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653420620; cv=none; d=google.com; s=arc-20160816; b=eOxulvQb/WQ+YtdyTcWLG5nhAj60Aicu2LXUdqcY0sRF/7faidTycKoEPkfg/wgi6i lgL8IGwTVfKeUp801SIAqoiyP7EmU4jgEXO1VjM1h7NLcYqV29FUQcL9hY3LBjuJs+WV BTUayCbgwGLYoNqHtadfLUtFXcI3yUB1lTub04E09v8lFovE+xzVmMaWdUsv2mfjfdqj mdbyvebr7TDDgEmB+dspeXy5Xc8ONzvWLTI2jBEDILzPrB3nSM39CJaRstCz5Wbx59JZ xjn/v168FVSDgTeESyEZqPGKZ1Uz7+lMFUVn0+iJIay1p0RlZvhRc6zL0xLyqzvYRs5y uyVQ== 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=dpp6s5Zi/XJNt6DJKKuRultWYl0hGR26KOE7MDNzls8=; b=RlIyRV/ofHDhlmN2WEXtBExAOOEFOg30BnGZC/ki4mLxXwHKEAk/6DYlLm5D4uAcSX CmXEa7zImIT3+LNi10NczHIH5WnNagX4jmc9MD7ESDrAFnCAz44sMMZVc/P0P/L/WODo AMOmdxDZbNnpqluin5p3OUgSkSZx3iv4omfG30jHJEwUb1SKy8ScJqg2161ggxGHvZr+ hW+oxASA4HKA41b9UlXQwytF/PsLlbsByyocL+cmrsCYOntG/3b4ZkitnArnDWPFX5CP VOrU0d+nQ5AeJgkYg6jFpo3UoDUc4YAmbOH7VsxBzYD5PYntLlPmHkV2m4mrz94VqJr8 2e3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="q2PjA/mF"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a63e80c000000b003f9e159641fsi15949854pgh.663.2022.05.24.12.30.07; Tue, 24 May 2022 12:30:20 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="q2PjA/mF"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238036AbiEXOWm (ORCPT + 99 others); Tue, 24 May 2022 10:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236990AbiEXOWj (ORCPT ); Tue, 24 May 2022 10:22:39 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D521C6129F for ; Tue, 24 May 2022 07:22:36 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id c12so23248644eds.10 for ; Tue, 24 May 2022 07:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dpp6s5Zi/XJNt6DJKKuRultWYl0hGR26KOE7MDNzls8=; b=q2PjA/mFw5U9/q0PkfQSizJWNDtWdEMi7NOpm376PeBzer03NUq9Ds3dpxh2DFqT4m cHThbPjm7gxF4WtvK08ERO48+BNoBoeWngyiWyqHrLLUAWpd0s2hLmxB75565Jjci9yo pV3BqYaioSKvYGF8aOaSu2nSUfI4OcWmNwDPs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dpp6s5Zi/XJNt6DJKKuRultWYl0hGR26KOE7MDNzls8=; b=T0BoJc1BKPTwiJTZZwHnWxyZU9JGfw6YLBYr9uJ8pZJcJzyORAN3ldWMObCaUTmXBf zp4XyjfO+NSbnsCq0J3KbxK7GoQVrtELlcSTnwpMltuxtQs3i3sVjuphXDtOpMQzdFgX 69aZv27TDVdlXOXyge01XSI23I71nTtrouK6HLVzp9hZDU1srT+xOryyFURGU0j/gelV f8lt44FdDfVqrVG8vp8weyDb6Ha0cvxGJp2nB9rubuJtGe31PLL+UFYBdhr1NdwWeoqE HNo6IY/3Bx5nL/L0oUM3luVafGd4PrsH6iUMgHkRxBL8ixMqmVUS8JPm1BYxhoYV9mkt jOuw== X-Gm-Message-State: AOAM533Dza9Czn5MgIbMlxuzLjFVW32cY3A6qXg+0I4IIW+Ytn/wk9Go 2yQ82KmmR/8ghlDvSazo/LJ+OJncdrZXmlkm+O/6DQ== X-Received: by 2002:aa7:cdd2:0:b0:42b:aeb2:bc99 with SMTP id h18-20020aa7cdd2000000b0042baeb2bc99mr526437edw.382.1653402155432; Tue, 24 May 2022 07:22:35 -0700 (PDT) MIME-Version: 1.0 References: <20220511222910.635307-1-dlunev@chromium.org> <20220512082832.v2.2.I692165059274c30b59bed56940b54a573ccb46e4@changeid> In-Reply-To: From: Miklos Szeredi Date: Tue, 24 May 2022 16:22:24 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] FUSE: Retire superblock on force unmount To: Daniil Lunev Cc: Al Viro , linux-fsdevel@vger.kernel.org, Christoph Hellwig , fuse-devel , "Theodore Ts'o" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 23 May 2022 at 02:25, Daniil Lunev wrote: > > So, I tried this patchset with open bdi elements during force unmount > and a random file open [1], and didn't see any major drama with > force unmounting the node, after re-mounting, read on sysfs node > returned "no such device", which is expected. > With private bdi flag patch, unless bdi is unregister on force unmount > in fuse, it will complain on name collision [2] (because the patch > actually doesn't do much but unregisters the bdi on unmount, which > seems to happen ok even if node is busy). Calling bdi_unregister() might be okay, and that should fix this. I'm not familiar enough with that part to say for sure. But freeing sb->s_bdi while the superblock is active looks problematic. Thanks, Miklos