]> 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)
commit7e880fe92e01d025b2e31a4903b1baf1a65b6d9d
tree65cbffa4ae7bc0213afe28255a52dd41998b6c48
parentb0673b7ddb69bb13c8de29abd97ead99b1bf9307
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