From: Jan Schmidt <list.btrfs@jan-o-sch.net>
To: Zach Brown <zab@redhat.com>
Cc: Stefan Behrens <sbehrens@giantdisaster.de>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] Btrfs: Don't allocate inode that is already in use
Date: Wed, 16 Oct 2013 14:19:41 +0200 [thread overview]
Message-ID: <525E845D.70901@jan-o-sch.net> (raw)
In-Reply-To: <20131015204148.GK11338@lenny.home.zabbo.net>
On Tue, October 15, 2013 at 22:41 (+0200), Zach Brown wrote:
>> Probably a bit too obscure to turn this into an xfstest? At least nobody
>> complained so far, and this reproducer takes me 1m57 to run, so nothing I want
>> in each xfstest cycle.
>
> I disagree. The entire point of regression tests is to trigger bugs
> that the usual processes failed to find, like this one.
>
> If you think that two minutes is too long for a test to run then mark it
> as "stress" (is that the xfstests group for boring long running tests?)
> or take the time to make a tighter test.
>
> Don't just skip regression testing. Please.
You are mixing up my points. The first argument you're quoting is not against
regression testing in this case, and it deserves the "stress" answer, I agree.
You don't quote my second argument, which is not "just skip regression testing".
I'll try again in other words: A regression test only makes sense if it can
prevent us from making the same mistake again. As far as I see, the reproducer
script is so specific, that the only thing it can prevent is an exact revert of
Stefan's patch. If you argue that we should have a test for just this, fair
enough, then we could use exactly Stefan's script. I don't think that gains us
anything. We're not normally reverting bugfix patches deliberately, especially
not for very short patches with very long descriptions.
I'd very much like to see a more generic test to avoid similar regressions, if
that can be created. I don't have a good plan how to trigger such a situation
(i.e. know which inodes are on the free_inode_pinned list) in a more general way.
-Jan
next prev parent reply other threads:[~2013-10-16 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-15 18:08 [PATCH] Btrfs: Don't allocate inode that is already in use Stefan Behrens
2013-10-15 18:54 ` Jan Schmidt
2013-10-15 20:41 ` Zach Brown
2013-10-16 12:19 ` Jan Schmidt [this message]
2013-10-16 16:46 ` Zach Brown
2013-10-16 17:26 ` Tim Landscheidt
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=525E845D.70901@jan-o-sch.net \
--to=list.btrfs@jan-o-sch.net \
--cc=linux-btrfs@vger.kernel.org \
--cc=sbehrens@giantdisaster.de \
--cc=zab@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