Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5578685rwd; Wed, 24 May 2023 04:04:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4o8WznWp4m58RPDjpAx1OsnggGbP/wYG7jWqLClOxAX7xnDhRtDQp8DEbrUVAkHZ43GIql X-Received: by 2002:a17:903:246:b0:1ad:fcdc:bcb9 with SMTP id j6-20020a170903024600b001adfcdcbcb9mr19640650plh.23.1684926242561; Wed, 24 May 2023 04:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684926242; cv=none; d=google.com; s=arc-20160816; b=WYGKDcGkictOzC/1cgmaFuZtdF32QnooLb0EyelK+VQX3CwBBCoZfa10botSDhZuHt 6VqkohhYQoPYNm2mCJnmAI7kWJeHAopR45TZDlZDZkPh6khlmIicdvSN1x/8UPbAZfdS 4nP9yla6BKB3b/TrvO9BoO45u5mUvqrKBHZIOGGuzqv25HkzAqL7Q1nKYQYzrAY4kc3D NRwyGdoc/wBx32lyYYYouj5fJAUQbgtVjfrEDYIbgkWwkTziS8E854GWGTXZFRkXD9VI lKtggRVRYTkNqoKs4vFK0SHQHA4PLW9hCeCgw4UgoHI9bBbsAhwr6Kci+Z+6Dpx5l3vf 57jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=mKvI0wb6sY7CJdNT3kqwZKJ0y1/boUVF9aZoUrdJ5fA=; b=uv1NnTIzRKz5p3y/hnEzaDNXIrEGNV1aBwcreuaW7t9xveoxCGGlslqx2L577XjbSN cbuaYS8I/7tdIj/YbyeO/ZCMmcQxzLl+f/OLTuLrO1fps19e7L7qR867HLoLCvHRAVs/ 5xdjTOQvf/9w0zyrewIAj0c7iBpyfnSz9clzLLmNjNKl8MnK/D/5NW74gdo6gM4+pmJq 8FY0wis8iHAmt8BCyRTy0drX/4/9pzSmMEYjp26Z3zLxTDnr/JBw93Nc2k9Nrj8RtjgM KSpiXaETMa5njQ4NAvirjNr2tBxTMuZwaxnqBJJeIHld2Cp3tg4LjEnVfdBywFJQggtG 0sCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=gOA7312Z; dkim=neutral (no key) header.i=@suse.cz; 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 c11-20020a170902d48b00b001a4fc13dfa5si8648671plg.276.2023.05.24.04.03.05; Wed, 24 May 2023 04:04:02 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=gOA7312Z; dkim=neutral (no key) header.i=@suse.cz; 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 S230358AbjEXKno (ORCPT + 99 others); Wed, 24 May 2023 06:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjEXKnn (ORCPT ); Wed, 24 May 2023 06:43:43 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7928B97 for ; Wed, 24 May 2023 03:43:42 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 150581F45F; Wed, 24 May 2023 10:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1684925021; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mKvI0wb6sY7CJdNT3kqwZKJ0y1/boUVF9aZoUrdJ5fA=; b=gOA7312ZpSlRd5B/10vRQ7o3/DRExgUHJXXtEodfso3kNKteR37evChuwE1RLRb6Qrbu42 pZleY9SjoJ1Czx96F8QK+hpl7x/xoPTCTa+ikrRNsjR+zIU9lZE+ejWmWRRRuagJoYRTmA SYqJ7TvGIzRt7kGOkIm2VCsuNRj0k/k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1684925021; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mKvI0wb6sY7CJdNT3kqwZKJ0y1/boUVF9aZoUrdJ5fA=; b=+A1WTHmCRqjO4WxChHBKs5kwFQOwcOGpWKW8farhkFs0iX/S0z0hgZ371tBEhQNzIOCeWD rZhBgCSNDPc4pLDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 06C9A133E6; Wed, 24 May 2023 10:43:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id t4GkAV3qbWSdKwAAMHmgww (envelope-from ); Wed, 24 May 2023 10:43:41 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 93CD3A075C; Wed, 24 May 2023 12:43:40 +0200 (CEST) Date: Wed, 24 May 2023 12:43:40 +0200 From: Jan Kara To: Eric Whitney Cc: jack@suse.cz, linux-ext4@vger.kernel.org Subject: Re: 6.4-rc1 xfstests-bld adv regressions Message-ID: <20230524104340.5ypioctla3s676gm@quack3> References: <20230509190930.wyblxwohejmd43fw@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230509190930.wyblxwohejmd43fw@quack3> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello! Due to conferences this took a bit long. I'm sorry for that. On Tue 09-05-23 21:09:30, Jan Kara wrote: > On Tue 09-05-23 14:20:15, Eric Whitney wrote: > > I'm seeing two test regressions on 6.4-rc1 while running the adv test case > > with kvm-xfstests. Both tests fail with 100% reliability in 100 trial runs, > > and the failures appear to depend solely upon the fast commit mount option. > > > > The first is generic/065, where the relevant info from 065.full is: > > > > _check_generic_filesystem: filesystem on /dev/vdc is inconsistent > > *** fsck.ext4 output *** > > fsck from util-linux 2.36.1 > > e2fsck 1.47.0 (5-Feb-2023) > > Pass 1: Checking inodes, blocks, and sizes > > Pass 2: Checking directory structure > > Pass 3: Checking directory connectivity > > Pass 4: Checking reference counts > > Pass 5: Checking group summary information > > Directories count wrong for group #16 (4294967293, counted=0). > > > > > > The second is generic/535, where the test output is: > > > > QA output created by 535 > > Silence is golden > > +Before: 755 > > +After : 777 > > > > Both test failures bisect to: e360c6ed7274 ("ext4: Drop special handling of > > journalled data from ext4_sync_file()"). Reverting this patch eliminates the > > test failures. So, I thought I'd bring these to your attention. > > Thanks for report! Yeah, when doing commit e360c6ed7274 I forgot about > directories which can be also fsynced and which need special treatment. I > have to think a bit what's the best way to fix this. After digging a bit in the code I understand now what has confused me. The thing is that fastcommit does not track metadata changes on directories but neither does it mark the filesystem as ineligible when they happen. So ext4_fc_commit() implicitely relies on the fact that it never gets called in any other case than fsync(2) on a regular file. I believe we should improve fastcommit code to better handle directories or at least not have these implicit assumptions but for now the easiest fix is to return back the explicit full commit for non-regular files. I'll send a patch. Honza -- Jan Kara SUSE Labs, CR