From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Josef Bacik <josef@toxicpanda.com>,
linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH 0/8] Fixup uninitialized warnings and enable extra checks
Date: Sat, 17 Dec 2022 08:07:23 +0800 [thread overview]
Message-ID: <62ec6612-34a9-7b41-e3dc-70441697d594@gmx.com> (raw)
In-Reply-To: <6e0313f1-fb8d-808a-3489-9bee83990bea@gmx.com>
On 2022/12/17 07:55, Qu Wenruo wrote:
>
>
> 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?
In fact, it's still reproducible reliably here, with all uninitialized
fixes applied upon "btrfs: do not check header generation in
btrfs_clean_tree_block".
btrfs/072 30s ... - output mismatch (see
/home/adam/xfstests/results//btrfs/072.out.bad)
--- tests/btrfs/072.out 2022-05-11 09:55:30.736666664 +0800
+++ /home/adam/xfstests/results//btrfs/072.out.bad 2022-12-17
08:05:26.750000015 +0800
@@ -1,2 +1,9 @@
QA output created by 072
Silence is golden
+Scrub find errors in "-m dup -d single" test
+Scrub find errors in "-m raid0 -d raid0" test
+Scrub find errors in "-m raid0 -d raid0" test
+Scrub find errors in "-m raid1 -d raid0" test
+Scrub find errors in "-m raid10 -d raid10" test
...
(Run 'diff -u /home/adam/xfstests/tests/btrfs/072.out
/home/adam/xfstests/results//btrfs/072.out.bad' to see the entire diff)
btrfs/074 32s ... - output mismatch (see
/home/adam/xfstests/results//btrfs/074.out.bad)
--- tests/btrfs/074.out 2022-05-11 09:55:30.736666664 +0800
+++ /home/adam/xfstests/results//btrfs/074.out.bad 2022-12-17
08:06:00.036666681 +0800
@@ -1,2 +1,3 @@
QA output created by 074
Silence is golden
+Scrub find errors in "-m raid1 -d raid1" test
...
(Run 'diff -u /home/adam/xfstests/tests/btrfs/074.out
/home/adam/xfstests/results//btrfs/074.out.bad' to see the entire diff)
Ran: btrfs/072 btrfs/074
Failures: btrfs/072 btrfs/074
Thanks,
Qu
>
> 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(-)
>>
next prev parent reply other threads:[~2022-12-17 0:07 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 20:15 [PATCH 0/8] Fixup uninitialized warnings and enable extra checks Josef Bacik
2022-12-16 20:15 ` [PATCH 1/8] btrfs: fix uninit warning in run_one_async_start Josef Bacik
2022-12-17 0:15 ` Qu Wenruo
2022-12-19 7:51 ` Johannes Thumshirn
2022-12-20 19:03 ` David Sterba
2022-12-21 18:26 ` David Sterba
2022-12-16 20:15 ` [PATCH 2/8] btrfs: fix uninit warning in btrfs_cleanup_ordered_extents Josef Bacik
2022-12-17 0:16 ` Qu Wenruo
2022-12-19 7:53 ` Johannes Thumshirn
2022-12-16 20:15 ` [PATCH 3/8] btrfs: fix uninit warning from get_inode_gen usage Josef Bacik
2022-12-17 0:16 ` Qu Wenruo
2022-12-19 7:55 ` Johannes Thumshirn
2022-12-20 19:16 ` David Sterba
2022-12-16 20:15 ` [PATCH 4/8] btrfs: fix uninit warning in btrfs_update_block_group Josef Bacik
2022-12-17 0:16 ` Qu Wenruo
2022-12-19 7:56 ` Johannes Thumshirn
2022-12-16 20:15 ` [PATCH 5/8] btrfs: fix uninit warning in __set_extent_bit and convert_extent_bit Josef Bacik
2022-12-17 0:17 ` Qu Wenruo
2022-12-16 20:15 ` [PATCH 6/8] btrfs: extract out zone cache usage into it's own helper Josef Bacik
2022-12-19 7:05 ` Naohiro Aota
2022-12-20 19:24 ` David Sterba
2022-12-21 16:47 ` Naohiro Aota
2022-12-21 18:08 ` David Sterba
2022-12-16 20:15 ` [PATCH 7/8] btrfs: fix uninit warning in btrfs_sb_log_location Josef Bacik
2022-12-19 6:23 ` Naohiro Aota
2022-12-19 7:59 ` Johannes Thumshirn
2022-12-16 20:15 ` [PATCH 8/8] btrfs: turn on -Wmaybe-uninitialized Josef Bacik
2022-12-17 0:18 ` Qu Wenruo
2022-12-26 4:17 ` Nathan Chancellor
2022-12-26 14:04 ` Naresh Kamboju
2023-01-02 12:42 ` David Sterba
2023-02-22 2:59 ` Guenter Roeck
2023-02-22 16:38 ` David Sterba
2023-02-22 17:18 ` Guenter Roeck
2023-03-12 13:06 ` Linux regression tracking (Thorsten Leemhuis)
2023-03-12 14:37 ` Guenter Roeck
2023-03-12 14:57 ` Linux regression tracking (Thorsten Leemhuis)
2023-03-26 18:03 ` Linux regression tracking #update (Thorsten Leemhuis)
2023-03-14 21:59 ` David Sterba
2023-02-24 17:22 ` Guenter Roeck
2022-12-16 23:55 ` [PATCH 0/8] Fixup uninitialized warnings and enable extra checks Qu Wenruo
2022-12-17 0:07 ` Qu Wenruo [this message]
2022-12-20 19:37 ` David Sterba
2022-12-21 18:36 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62ec6612-34a9-7b41-e3dc-70441697d594@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=josef@toxicpanda.com \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).