]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/disk-io.c
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)
commit385de0ef387dc7f33fc5b828136cbc9516b3ec1a
tree65cbffa4ae7bc0213afe28255a52dd41998b6c48
parentbe539518262774ed04336e7c68354b823dc6c5e4
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