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 EE384C25B0F for ; Sat, 13 Aug 2022 06:48:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235680AbiHMGs2 (ORCPT ); Sat, 13 Aug 2022 02:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbiHMGsZ (ORCPT ); Sat, 13 Aug 2022 02:48:25 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C6B315A2B; Fri, 12 Aug 2022 23:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EKZ7iw4o0Vgf8sOuHWGlEefJp/oYHiqjhthkGTQEp8c=; b=n+eUEbGe4rcqum4+1jsQXTTIvC EYkAjAWh2nqUZVGhTvAVlfhHItCOANRd3yEf30tOJAy5+i+RxDLXXiiD162iR4bmdDaeTJBKilI1u eFNVIzPrs4kDMQWABDrMN5EPJX5tXivlZaZLlmscu8sDQ3O/mllPyEML9nfUt7yg4stkrn2wxJfiY jEVylR09KZegI4gMBN1JPBUIDPIHuS3GeWKgw8fiNzfJKWYmgWL9lXGtwLNsV7aNJURBsz0XfrZ/u pPMDXM/ovVewtvWQdFf51Gx7E7PYM68DqcDt8BqKdWewleCJ5oymabMcQMJqCESW344ePGZCUtJQ/ w3jUaZKA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oMkwU-006hLO-7k; Sat, 13 Aug 2022 06:48:18 +0000 Date: Fri, 12 Aug 2022 23:48:18 -0700 From: Christoph Hellwig To: Yu Kuai Cc: viro@zeniv.linux.org.uk, hch@infradead.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com Subject: Re: [PATCH] fs: fix possible inconsistent mount device Message-ID: References: <20220813060848.1457301-1-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220813060848.1457301-1-yukuai1@huaweicloud.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sat, Aug 13, 2022 at 02:08:48PM +0800, Yu Kuai wrote: > From: Yu Kuai > > If device support rename, for example dm, following concurrent scenario > is possible: The fix is easy: don't rename mounted block device, and even bettersimply don't rename them at all, which is just causing huge amounts of pain.