]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c6212e08f5fe7eba1964f15c134239729cccdd4
tree8366a8855918778cf03cb0cc10dc3c3d758d3a4f
parent2c3fddcc0a6530357f590dc5918c6fe22412663a
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