Re: [PATCH] btrfs: test quota disable during quota rescan

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxxx> 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@xxxxxxxxxxx>
> Reviewed-by: Filipe Manana <fdmanana@xxxxxxxx>
> 
> 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@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux