btrfs: scrub: remove btrfs_fs_info::scrub_wr_completion_workers
authorQu Wenruo <wqu@suse.com>
Mon, 12 Jun 2023 07:23:29 +0000 (15:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:40 +0000 (13:59 +0200)
commit81db6ae842b3c07edd67278e3693f53a28d694cf
treed4f794b7f10970a60828c5de16a18a3cafadee28
parentc2bbc0bab0bb3cdd38914fe714f9b6c3f7544e88
btrfs: scrub: remove btrfs_fs_info::scrub_wr_completion_workers

Since the scrub rework introduced by commit 2af2aaf98205 ("btrfs:
scrub: introduce structure for new BTRFS_STRIPE_LEN based interface")
and later commits, scrub only needs one single workqueue,
fs_info::scrub_worker.

That scrub_wr_completion_workers is initially to handle the delay work
after write bios finished.  But the new scrub code goes submit-and-wait
for write bios, thus all the work are done inside the scrub_worker.

The last user of fs_info::scrub_wr_completion_workers is removed in
commit 16f93993498b ("btrfs: scrub: remove the old writeback
infrastructure"), so we can safely remove the workqueue.

Reviewed-by: Christoph Hellwig <hch@lst.de>
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/fs.h
fs/btrfs/scrub.c