FS/XFS testing framework
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Filipe Manana <fdmanana@kernel.org>, Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] generic: test concurrent direct IO writes and fsync using same fd
Date: Tue, 3 Sep 2024 19:32:01 +0930	[thread overview]
Message-ID: <4201d17f-beff-448d-a8fa-5fcab46c6325@gmx.com> (raw)
In-Reply-To: <CAL3q7H4WSd7woy_cDmQ-1Z45zgMDdyfSS-2uzhOqkHisQewWXw@mail.gmail.com>



在 2024/9/3 19:11, Filipe Manana 写道:
> On Tue, Sep 3, 2024 at 5:09 AM Zorro Lang <zlang@redhat.com> wrote:
[...]
>>
>> Oh, so this test depends on CONFIG_BTRFS_ASSERT=y, or it always test passed? I tested
>> on general kernel of fedora 42, which doesn't enable this config.
>>
>> There's a _require_xfs_debug helper in common/xfs (and _require_no_xfs_debug
>> too), does btrfs have similar method to check that?
>
> No, we don't.
>
> I don't think we should make the test run only if the kernel config
> has CONFIG_BTRFS_ASSERT=y.
>
> This particular regression is easily detected with
> CONFIG_BTRFS_ASSERT=y, and btrfs developers and the CI we use have
> that setting enabled.
>
> The fact that this regression happened shows that fstests didn't have
> this type of scenario covered, which happens in practice with qemu's
> workload (from two user reports).
>
> I'm adding the test not just to prove the assertion can be triggered
> for this particular regression, but also to make sure no other types
> of regressions happen in the future which may be unrelated to the
> reason for the current regression.

I agree with Filipe, yes I know it's frustrating if one can not
reproduce the bug.

But considering filesystems can have different configs to expose
different behavior, limiting the test case for certain configs doesn't
really improve coverage.

And I believe for most fs development teams, we all have different
kernel configs for prod and develop coverage.

For this particular case, I believe just mentioning what is needed to
trigger the original failure (and what the original symptom) is good enough.
Although I guess that's what is missing and caused the initial confusion.

So mind to slightly update the commit message to mention the needed
config to trigger the original bug?

With such a small update, it should help us to communicate with other
people who mostly works out of our realm.

Thanks,
Qu
>
> Hope that makes sense.
>
>>
>> Thanks,
>> Zorro
>>

>

  reply	other threads:[~2024-09-03 10:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 23:10 [PATCH] generic: test concurrent direct IO writes and fsync using same fd fdmanana
2024-09-02 20:28 ` Zorro Lang
2024-09-02 21:45   ` Filipe Manana
2024-09-03  4:09     ` Zorro Lang
2024-09-03  9:41       ` Filipe Manana
2024-09-03 10:02         ` Qu Wenruo [this message]
2024-09-04 11:13         ` Zorro Lang
2024-09-04 14:18           ` Filipe Manana
2024-09-03 12:42 ` Anand Jain

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=4201d17f-beff-448d-a8fa-5fcab46c6325@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=fdmanana@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zlang@redhat.com \
    /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