Skip to content

btrfs: scrub: support low bwlimits

Boris Burkov linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs: scrub: release the commit root paths before pausingfs/btrfs/scrub.c+16 -81 reply
2/4btrfs: scrub: cancellable pause during throttle sleepfs/btrfs/scrub.c+21 -61 reply
3/4btrfs: scrub: handle bwlimit below 512KiBfs/btrfs/scrub.c fs/btrfs/sysfs.c+30 -433 replies
4/4btrfs: scrub: size read bios to the bwlimit 10ms burstfs/btrfs/scrub.c+60 -220 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchQu Wenruo
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] btrfs: scrub: support low bwlimits

Scrub currently bottoms out at 512KiB/s bwlimit, and below that the logic doesn't make much sense. But if we support it naively, we ruin high speed scrubbing and add unacceptably long uninterruptible sleeps.

Therefore, to support arbitrarily slow scrubs, we must also spruce up some of the sleeping / pausing / cancelling logic.

Boris Burkov (4):
btrfs: scrub: release the commit root paths before pausing
btrfs: scrub: cancellable pause during throttle sleep
btrfs: scrub: handle bwlimit below 512KiB
btrfs: scrub: size read bios to the bwlimit 10ms burst

 fs/btrfs/scrub.c | 192 +++++++++++++++++++++++++++++------------------
 fs/btrfs/sysfs.c |   2 +
 2 files changed, 121 insertions(+), 73 deletions(-)
Signature · 1 line
2.56.0