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 F3EE4C4332F for ; Fri, 16 Dec 2022 23:56:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiLPX4H (ORCPT ); Fri, 16 Dec 2022 18:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbiLPX4G (ORCPT ); Fri, 16 Dec 2022 18:56:06 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 714E3240BD for ; Fri, 16 Dec 2022 15:56:04 -0800 (PST) Received: from [0.0.0.0] ([149.28.201.231]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N0oBx-1ojAuB29eH-00wnNZ; Sat, 17 Dec 2022 00:55:59 +0100 Message-ID: <6e0313f1-fb8d-808a-3489-9bee83990bea@gmx.com> Date: Sat, 17 Dec 2022 07:55:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 0/8] Fixup uninitialized warnings and enable extra checks Content-Language: en-US To: Josef Bacik , linux-btrfs@vger.kernel.org, kernel-team@fb.com References: From: Qu Wenruo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:DnfDCsiy2PNuG+feCf+7+7knzvevRAnRACYZma0vflKlqunRcXY Q9eGtz0eQDslZinE8PDF/R490EJfFZtutNqFy6st0GK3HiUWJHWlv87tnDa8jAC7KM2KFGa LbXxrsjO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530Gf3cAfVhO0c YyTlRbv95XsEAkffwWl7bONGSz8= Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 2022/12/17 04:15, Josef Bacik wrote: > Hello, > > We had been failing the raid56 related scrub tests on our overnight tests since > November. Initially I asked Qu to look into these as I didn't have time to dig > in, and he was unable to reproduce. I assumed it was some oddity in my setup, > so I ignored it. However recently I got a report that I regressed some of these > tests with an unrelated change. When debugging it I found it was because of an > uninitialized return value, which would have been caught by more modern gcc's > with -Wmaybe-uninitialized. Any clue which patch is fixing the raid0/raid1 scrub failures? As locally, I found my aarch64/x86_64 VMs are all reporting scrub errors for all profiles, including RAID0/RAID1. (The failure happens after patch "btrfs: do not check header generation in btrfs_clean_tree_block"). I didn't notice any of the patches touching the scrub path, or is there some hidden paths involved? Thanks, Qu > > In order to avoid these sort of problems in the future lets fix up all the false > positivies that this warning brings, and then enable the option for btrfs so we > can avoid this style of failure in the future. Thanks, > > Josef > > Josef Bacik (8): > btrfs: fix uninit warning in run_one_async_start > btrfs: fix uninit warning in btrfs_cleanup_ordered_extents > btrfs: fix uninit warning from get_inode_gen usage > btrfs: fix uninit warning in btrfs_update_block_group > btrfs: fix uninit warning in __set_extent_bit and convert_extent_bit > btrfs: extract out zone cache usage into it's own helper > btrfs: fix uninit warning in btrfs_sb_log_location > btrfs: turn on -Wmaybe-uninitialized > > fs/btrfs/Makefile | 1 + > fs/btrfs/block-group.c | 2 +- > fs/btrfs/disk-io.c | 2 +- > fs/btrfs/extent-io-tree.c | 8 ++--- > fs/btrfs/inode.c | 2 +- > fs/btrfs/send.c | 8 ++--- > fs/btrfs/zoned.c | 75 ++++++++++++++++++++++++--------------- > 7 files changed, 57 insertions(+), 41 deletions(-) >