Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1287971rwl; Thu, 10 Aug 2023 09:01:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXfAsEnI8GdAFGb8X6BCJ1KxLUNmP/+lq0zA4lTY1XPyKb8+5L1uINk94OpRTsiDSI8cNY X-Received: by 2002:a17:90a:648e:b0:268:220a:7080 with SMTP id h14-20020a17090a648e00b00268220a7080mr3334543pjj.2.1691683306325; Thu, 10 Aug 2023 09:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691683306; cv=none; d=google.com; s=arc-20160816; b=G5Q+k6p1rf+9eYdwLmFhJLc0S6aiEQeF/9T2dLU3tekkaZiqIoLJIH/xAb/Tp1LN5M zqtwUk6OOmfNY4DFUEz/Cy7wXqut2Zevte2iGft02usnl/wSx+auI+utx+vpjV23WwzP QrBp3qb4IFifvwX6VUqS0MsiVVE+RpPMI/qpLeGQlA2gVth+78vsl0SkC5Vf8+vv/bHK G/j2qe/CUomwRwEWcDFBXlSkCM+ejUg186RAamHXuZ2wlgc5iimKHGE891km+QxYvavU uq1pd8n5PTlkgCh7B6mOOdoAimtkHpgMRtHYItxYbGIWMJhMniCKjvjJcaK4MDafEecv Gvcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xtvnpM67YcIFPlcprNL+E73dg11P/JkOSp4wCkfic8s=; fh=kvnBupI2B0k+qeTtCV3tSt/BV+ruXryI/QHGp+E7P9g=; b=VZsVMeH4mUFF7fee0CqtrY3fptdM1ZQU9t/UGDkf0rYagEUSQjjXHqOmnjXNgvGEn0 LL70ehrvGpntjYwpv4GRI0ApfeDM9Gt17sPW6k9etgIOmXfwz7hkLzwG8YXHv7UawBhJ v6XLQRtjHRaiV/L1qOu2nl9xgybQSbzguDq+tB0PTom4rgUv21djt1eaKDUKZYPGzO1G o4jF/r0PgGblWCxOQUnzeqZ37L3QU+EsqifcQbwmIQ/nOccfA1n9aHDIRgWjnNU4b6wh rYWg89yFyeP+JNEmIPZL05qsoM59DfLXerdVZ3ovX2mCGoEBrEdfdAZZj/J05tJm6MFM ESxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 c10-20020a17090a020a00b0026b0b359a82si1643521pjc.4.2023.08.10.09.01.31; Thu, 10 Aug 2023 09:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232569AbjHJPw3 (ORCPT + 99 others); Thu, 10 Aug 2023 11:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233810AbjHJPw3 (ORCPT ); Thu, 10 Aug 2023 11:52:29 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10F6C19F; Thu, 10 Aug 2023 08:52:29 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0AF5B67373; Thu, 10 Aug 2023 17:52:26 +0200 (CEST) Date: Thu, 10 Aug 2023 17:52:25 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Al Viro , Christian Brauner , Namjae Jeon , Sungjong Seo , Theodore Ts'o , Andreas Dilger , Konstantin Komarov , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, ntfs3@lists.linux.dev, linux-xfs@vger.kernel.org Subject: Re: [PATCH 07/13] xfs: document the invalidate_bdev call in invalidate_bdev Message-ID: <20230810155225.GD28000@lst.de> References: <20230809220545.1308228-1-hch@lst.de> <20230809220545.1308228-8-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-ext4@vger.kernel.org On Thu, Aug 10, 2023 at 04:22:15PM +0100, Matthew Wilcox wrote: > > blkdev_issue_flush(mp->m_logdev_targp->bt_bdev); > > invalidate_bdev(mp->m_logdev_targp->bt_bdev); > > While I have no complaints with this as a commit message, it's just too > verbose for an inline comment, IMO. Something pithier and more generic > would seem appropriate. How about: > > /* > * Prevent userspace (eg blkid or xfs_db) from seeing stale data. > * XFS is not coherent with the bdev's page cache. > */ Well, this completely misses the point. The point is that XFS should never have to invalidate the page cache because it's not using it, but it has to due to weird races. I tried to condese the message but I could not come up with a good one that's not losing information.