]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use a normal workqueue for rmw_workers
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Apr 2022 04:43:11 +0000 (06:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:16 +0000 (17:03 +0200)
commit56be579b303da02a34b2522ca3eb08e961b365df
tree65cbffa4ae7bc0213afe28255a52dd41998b6c48
parent1c6212e08f5fe7eba1964f15c134239729cccdd4
btrfs: use a normal workqueue for rmw_workers

rmw_workers doesn'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/disk-io.c
fs/btrfs/raid56.c