From: Qu Wenruo <wqu@suse.com>
To: Boris Burkov <boris@bur.io>,
linux-btrfs@vger.kernel.org, kernel-team@fb.com
Subject: Re: [PATCH v2 0/4] btrfs: scrub: support low bwlimits
Date: Wed, 2 Dec 2026 07:47:57 +1030 [thread overview]
Message-ID: <a2b455a2-fe1e-428a-85b5-42e1784b5209@suse.com> (raw)
In-Reply-To: <cover.1796087540.git.boris@bur.io>
在 2026/12/1 11:44, Boris Burkov 写道:
> 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.
>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
>
> 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(-)
>
prev parent reply other threads:[~2026-12-01 21:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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
2026-12-01 21:17 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2b455a2-fe1e-428a-85b5-42e1784b5209@suse.com \
--to=wqu@suse.com \
--cc=boris@bur.io \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.