Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] btrfs: scrub: support low bwlimits
@ 2026-11-25 21:34 Boris Burkov
  2026-11-25 21:34 ` [PATCH 1/4] btrfs: scrub: release the commit root paths before pausing Boris Burkov
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Boris Burkov @ 2026-11-25 21:34 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-26  3:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 21:34 [PATCH 0/4] btrfs: scrub: support low bwlimits Boris Burkov
2026-11-25 21:34 ` [PATCH 1/4] btrfs: scrub: release the commit root paths before pausing Boris Burkov
2026-11-25 23:12   ` Qu Wenruo
2026-11-25 21:34 ` [PATCH 2/4] btrfs: scrub: cancellable pause during throttle sleep Boris Burkov
2026-11-25 23:29   ` Qu Wenruo
2026-11-25 21:34 ` [PATCH 3/4] btrfs: scrub: handle bwlimit below 512KiB Boris Burkov
2026-11-25 23:45   ` Qu Wenruo
2026-11-26  0:53     ` Boris Burkov
2026-11-26  3:43       ` Qu Wenruo
2026-11-25 21:34 ` [PATCH 4/4] btrfs: scrub: size read bios to the bwlimit 10ms burst Boris Burkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox