Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/4]  btrfs: scrub: support low bwlimits
@ 2026-12-01  1:14 Boris Burkov
  2026-12-01  1:14 ` [PATCH v2 1/4] btrfs: scrub: release the commit root paths before pausing Boris Burkov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Boris Burkov @ 2026-12-01  1:14 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.

Changelog:
v2:
- simplify the last patch which was splitting bios below the
  scrub stripe level. Just throttle per 64k stripe and avoid issues with bitmap
  concurrency.
- remove the bwlimit changed via sysfs wakeup logic which was buggy
  and over-engineered.


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: throttle per stripe instead of per stripe group

 fs/btrfs/scrub.c | 108 +++++++++++++++++++++++------------------------
 1 file changed, 53 insertions(+), 55 deletions(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-12-01  1:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  1:14 [PATCH v2 0/4] btrfs: scrub: support low bwlimits Boris Burkov
2026-12-01  1:14 ` [PATCH v2 1/4] btrfs: scrub: release the commit root paths before pausing Boris Burkov
2026-12-01  1:14 ` [PATCH v2 2/4] btrfs: scrub: cancellable pause during throttle sleep Boris Burkov
2026-12-01  1:14 ` [PATCH v2 3/4] btrfs: scrub: handle bwlimit below 512KiB Boris Burkov
2026-12-01  1:14 ` [PATCH v2 4/4] btrfs: scrub: throttle per stripe instead of per stripe group Boris Burkov

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