Commit 81db6ae
btrfs: scrub: remove btrfs_fs_info::scrub_wr_completion_workers
Since the scrub rework introduced by commit 2af2aaf ("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 16f9399 ("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>1 parent c2bbc0b commit 81db6ae
2 files changed
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
646 | 645 | | |
647 | 646 | | |
648 | 647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2698 | 2698 | | |
2699 | 2699 | | |
2700 | 2700 | | |
2701 | | - | |
2702 | | - | |
2703 | 2701 | | |
2704 | 2702 | | |
2705 | | - | |
2706 | 2703 | | |
2707 | 2704 | | |
2708 | 2705 | | |
2709 | 2706 | | |
2710 | | - | |
2711 | | - | |
2712 | 2707 | | |
2713 | 2708 | | |
2714 | 2709 | | |
| |||
2719 | 2714 | | |
2720 | 2715 | | |
2721 | 2716 | | |
2722 | | - | |
2723 | 2717 | | |
2724 | 2718 | | |
2725 | 2719 | | |
| |||
2732 | 2726 | | |
2733 | 2727 | | |
2734 | 2728 | | |
2735 | | - | |
2736 | | - | |
2737 | | - | |
2738 | | - | |
2739 | | - | |
| 2729 | + | |
2740 | 2730 | | |
2741 | 2731 | | |
2742 | 2732 | | |
2743 | | - | |
2744 | | - | |
| 2733 | + | |
2745 | 2734 | | |
2746 | | - | |
2747 | 2735 | | |
2748 | 2736 | | |
2749 | 2737 | | |
| |||
2754 | 2742 | | |
2755 | 2743 | | |
2756 | 2744 | | |
2757 | | - | |
2758 | | - | |
2759 | 2745 | | |
2760 | | - | |
2761 | 2746 | | |
2762 | 2747 | | |
2763 | 2748 | | |
| |||
0 commit comments