From: Dave Chinner <david@fromorbit.com>
To: Filipe Manana <fdmanana@gmail.com>
Cc: Justin Maggard <jmaggard10@gmail.com>,
fstests@vger.kernel.org,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
Justin Maggard <jmaggard@netgear.com>
Subject: Re: [PATCH] btrfs: test quota disable during quota rescan
Date: Mon, 9 Nov 2015 08:51:57 +1100 [thread overview]
Message-ID: <20151108215157.GA14311@dastard> (raw)
In-Reply-To: <CAL3q7H6-DatA0-etkVrBjC5EA8n4mtk8oDbo4yG-BnEWUh0KvA@mail.gmail.com>
On Sat, Nov 07, 2015 at 03:08:01PM +0000, Filipe Manana wrote:
> On Fri, Nov 6, 2015 at 6:40 PM, Justin Maggard <jmaggard10@gmail.com> wrote:
> > This test case tests if we are able to disable quotas on a filesystem
> > while a quota rescan is running. Up to now (4.3) this would result
> > in a kernel NULL pointer dereference.
> >
> > Fixed by patch (btrfs: qgroup: fix quota disable during rescan).
> >
> > Signed-off-by: Justin Maggard <jmaggard@netgear.com>
> Reviewed-by: Filipe Manana <fdmanana@suse.com>
>
> Looks good and it triggers the bug without the btrfs kernel fix.
>
> A side note, and if you would like you could do as a separate patch
> imho, is to speedup creating the files by using multiple
> jobs/processes (as we do in generic/038 for example) - the test takes
> 150 seconds on a debug kernel here, about 130 seconds were spent
> creating the files. Same observation applies to your previous test
> case as well.
Given how many people get such a basic operation "wrong", we need a
helper function for efficiently creating lots of empty files in a
filesystem.
Note that we already have _populate_fs(), but it's not very
efficient when it comes to empty files, nor does it use concurrency.
It seems to me that fixing this function and then using it
everywhere would be the best approach. Perhaps even doing something
like making fs_mark use deep directory structures, and just calling
it instead to populate the filesystem?
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
prev parent reply other threads:[~2015-11-08 21:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 18:40 [PATCH] btrfs: test quota disable during quota rescan Justin Maggard
2015-11-07 15:08 ` Filipe Manana
2015-11-08 21:51 ` Dave Chinner [this message]
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=20151108215157.GA14311@dastard \
--to=david@fromorbit.com \
--cc=fdmanana@gmail.com \
--cc=fstests@vger.kernel.org \
--cc=jmaggard10@gmail.com \
--cc=jmaggard@netgear.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