]> 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)
commitb0673b7ddb69bb13c8de29abd97ead99b1bf9307
tree8366a8855918778cf03cb0cc10dc3c3d758d3a4f
parent8b236004352ee50b0cb029336563252929283291
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