]> git.hungrycats.org Git - linux/commit
btrfs: stripe_alloc: do not re-queue a trapped group for reclaim every commit
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 5 Sep 2026 17:55:33 +0000 (13:55 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Mon, 7 Sep 2026 11:34:00 +0000 (07:34 -0400)
commitd2ca55d6f9ccc681663992fb5eafbc8a71d202a3
tree036d27e21e4eaa8dab9219f4d0a06177ea2fcd2b
parentcffcf3b746525a500801c85ecfc6625e71922d22
btrfs: stripe_alloc: do not re-queue a trapped group for reclaim every commit

The reclaim trigger runs at every commit-time rescan, so a group that
stayed above the threshold because its relocation could not get space
(or was still in progress) was handed to the worker again and again:
258 "relocating block group" messages in 24 minutes on one filesystem
while the trapped total moved once.  Remember when a group was last
queued and leave it alone for five minutes.

Assisted-by: Claude:claude-fable-5
fs/btrfs/block-group.h
fs/btrfs/free-space-cache.c