Commit 39dc7bd
btrfs: scrub: don't go ordered workqueue for dev-replace
The workqueue fs_info->scrub_worker would go ordered workqueue if it's a
device replace operation.
However the scrub is relying on multiple workers to do data csum
verification, and we always submit several read requests in a row.
Thus there is no need to use ordered workqueue just for dev-replace.
We have extra synchronization (the main thread will always
submit-and-wait for dev-replace writes) to handle it for zoned devices.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent ae76d8e commit 39dc7bd
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
2780 | | - | |
2781 | | - | |
| 2780 | + | |
2782 | 2781 | | |
2783 | 2782 | | |
2784 | 2783 | | |
| |||
2788 | 2787 | | |
2789 | 2788 | | |
2790 | 2789 | | |
2791 | | - | |
2792 | | - | |
2793 | | - | |
2794 | | - | |
| 2790 | + | |
2795 | 2791 | | |
2796 | 2792 | | |
2797 | 2793 | | |
| |||
2843 | 2839 | | |
2844 | 2840 | | |
2845 | 2841 | | |
2846 | | - | |
| 2842 | + | |
2847 | 2843 | | |
2848 | 2844 | | |
2849 | 2845 | | |
| |||
0 commit comments