btrfs: use normal workqueues for scrub
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 04:43:10 +0000 (06:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:15 +0000 (17:03 +0200)
commitbe539518262774ed04336e7c68354b823dc6c5e4
tree8366a8855918778cf03cb0cc10dc3c3d758d3a4f
parenta31b4a4368d28c5e780f0906588fbd1dcfe4ad54
btrfs: use normal workqueues for scrub

All three scrub workqueues don't need ordered execution or thread
disabling threshold (as the thresh parameter is less than DFT_THRESHOLD).
Just switch to the normal workqueues that use a lot less resources,
especially in the work_struct vs btrfs_work structures.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/scrub.c
fs/btrfs/super.c