linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amir Goldstein <amir73il@gmail.com>
To: Brian Foster <bfoster@redhat.com>
Cc: "Darrick J. Wong" <djwong@kernel.org>,
	linux-xfs <linux-xfs@vger.kernel.org>,
	"Luis R. Rodriguez" <mcgrof@kernel.org>,
	Zorro Lang <zlang@redhat.com>
Subject: Re: [PATCH] xfs: don't reuse busy extents on extent trim
Date: Fri, 27 May 2022 10:06:46 +0300	[thread overview]
Message-ID: <CAOQ4uxjB3L3eVd6WF-pqAx12P_bMpW0O1Om_p6Xnue-edif-cA@mail.gmail.com> (raw)
In-Reply-To: <CAOQ4uxh0NE4zHUSEqHv8nbpD4RR49Wd_S_DnXhiWCbNqgC0dSQ@mail.gmail.com>

On Thu, May 26, 2022 at 11:56 PM Amir Goldstein <amir73il@gmail.com> wrote:
>
> > > I tested it on top of 5.10.109 + these 5 patches:
> > > https://github.com/amir73il/linux/commits/xfs-5.10.y-1
> > >
> > > I can test it in isolation if you like. Let me know if there are
> > > other forensics that you would like me to collect.
> > >
> >
> > Hm. Still no luck if I move to .109 and pull in those few patches. I
> > assume there's nothing else potentially interesting about the test env
> > other than the sparse file scratch dev (i.e., default mkfs options,
>
> Oh! right, this guest is debian/10 with xfsprogs 4.20, so the defaults
> are reflink=0.
>
> Actually, the section I am running is reflink_normapbt, but...
>
> ** mkfs failed with extra mkfs options added to "-f -m
> reflink=1,rmapbt=0, -i sparse=1," by test 076 **
> ** attempting to mkfs using only test 076 options: -m crc=1 -i sparse **
> ** mkfs failed with extra mkfs options added to "-f -m
> reflink=1,rmapbt=0, -i sparse=1," by test 076 **
> ** attempting to mkfs using only test 076 options: -d size=50m -m
> crc=1 -i sparse **
>
> mkfs.xfs does not accept double sparse argument, so the
> test falls back to mkfs defaults (+ sparse)
>
> I checked and xfsprogs 5.3 behaves the same, I did not check newer
> xfsprogs, but that seems like a test bug(?)
>

xfsprogs 5.16 still behaves the same, meaning that xfs/076 and many many
other tests ignore the custom mkfs options for the specific sections.
That is a big test coverage issue!

> IWO, unless xfsprogs was changed to be more tolerable to repeating
> arguments, then maybe nobody is testing xfs/076 with reflink=0 (?)
>

Bingo!
Test passes 100 runs with debian/testing - xfsprogs v5.16

I shall try to amend the test to force reflink=0 to see what happens.
You should try it as well.

Thanks,
Amir.

  reply	other threads:[~2022-05-27  7:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 15:34 [PATCH] xfs: don't reuse busy extents on extent trim Brian Foster
2021-02-22 18:27 ` Darrick J. Wong
2021-02-23 12:31   ` Brian Foster
2021-02-23 18:22     ` Darrick J. Wong
2022-05-26 11:34     ` Amir Goldstein
2022-05-26 14:21       ` Brian Foster
2022-05-26 15:28         ` Amir Goldstein
2022-05-26 19:33           ` Amir Goldstein
2022-05-26 19:47           ` Brian Foster
2022-05-26 20:56             ` Amir Goldstein
2022-05-27  7:06               ` Amir Goldstein [this message]
2022-05-27 12:50                 ` Brian Foster
2022-05-27 14:16                   ` Amir Goldstein
2022-05-28 14:23             ` Amir Goldstein
2022-05-31 15:55               ` Brian Foster
2023-01-11 14:41       ` Gao Xiang
2023-01-11 21:06         ` Dave Chinner
2021-02-23  6:24 ` Chandan Babu R
2021-02-25  7:51 ` Christoph Hellwig
2021-02-25 18:05   ` Brian Foster

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=CAOQ4uxjB3L3eVd6WF-pqAx12P_bMpW0O1Om_p6Xnue-edif-cA@mail.gmail.com \
    --to=amir73il@gmail.com \
    --cc=bfoster@redhat.com \
    --cc=djwong@kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mcgrof@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;
as well as URLs for NNTP newsgroup(s).