From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3D9EEE14B9 for ; Wed, 6 Sep 2023 17:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241426AbjIFRKd (ORCPT ); Wed, 6 Sep 2023 13:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234838AbjIFRKc (ORCPT ); Wed, 6 Sep 2023 13:10:32 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865C0DD; Wed, 6 Sep 2023 10:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SJz4XT95wezg+B9GJkWziQTgnHcuphiw5Sf/cZrUB04=; b=Ja1eK9E0/smdRgpsTz/bzZdHtM gpXXqy7HhjSZqeVmUec0qjzcRFyZgyI9TI+1M95r8dZYTSRuATUvkomnUhltHVxQwcd+sqKewmiPn X8Ftmt/PFlooAI009AsllSFFgYTLN965B5zknSaIv9sakWlN8OlSK4RPdWMCBEKBnFh4uXp2DM2gj jG1uq8NlZxtDQ4m8JJh0kNLS9C9YN12qiieYALkdlQLzJdmCosnEGAVvOemDCDSDSGl4ZYly+u0yc Szjm03hKTCEYQBKMH2AfcuXzYaCPpl0gQkQMxRM0bRMut0+40kEl7hAmOVBo8aRmwViwqhTBpcj1l 0fgvb1dA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qdw2q-0040cT-0x; Wed, 06 Sep 2023 17:10:24 +0000 Date: Wed, 6 Sep 2023 18:10:24 +0100 From: Al Viro To: Mikulas Patocka Cc: Christian Brauner , Zdenek Kabelac , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com, Jan Kara , Christoph Hellwig Subject: Re: [PATCH] fix writing to the filesystem after unmount Message-ID: <20230906171024.GB800259@ZenIV> References: <59b54cc3-b98b-aff9-14fc-dc25c61111c6@redhat.com> <20230906-launenhaft-kinder-118ea59706c8@brauner> <20230906-aufheben-hagel-9925501b7822@brauner> <60f244be-803b-fa70-665e-b5cba15212e@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60f244be-803b-fa70-665e-b5cba15212e@redhat.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Sep 06, 2023 at 06:01:06PM +0200, Mikulas Patocka wrote: > Perhaps we could distinguish between FIFREEZE-initiated freezes and > device-mapper initiated freezes as well. And we could change the logic to > return -EBUSY if the freeze was initiated by FIFREEZE and to wait for > unfreeze if it was initiated by the device-mapper. By the time you get to cleanup_mnt() it's far too late to return -EBUSY.