]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: remove btrfs_fs_info::compressed_write_workers
authorQu Wenruo <wqu@suse.com>
Thu, 23 Oct 2025 08:02:34 +0000 (18:32 +1030)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:42:19 +0000 (22:42 +0100)
commit4bbdce84175db7ff0dfaa82e960c7488c6cb0bcf
tree5657fb2db4710aca786e56f54b9090b787c4f5a2
parent4591c3ef751d861d7dd95ff4d2aadb1b5e95854e
btrfs: remove btrfs_fs_info::compressed_write_workers

The reason why end_bbio_compressed_write() queues a work into
compressed_write_workers wq is for end_compressed_writeback() call, as
it will grab all the involved folios and clear the writeback flags,
which may sleep.

However now we always run btrfs_bio::end_io() in task context, there is
no need to queue the work anymore.

Just remove btrfs_fs_info::compressed_write_workers and
compressed_bio::write_end_work.

There is a comment about the works queued into
compressed_write_workers, now change to flush endio wq instead, which is
responsible to handle all data endio functions.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/disk-io.c
fs/btrfs/fs.h