]> git.hungrycats.org Git - linux/commit
btrfs: don't arbitrarily slow down delalloc if we're committing zygo-6.0.x-zb64
authorJosef Bacik <josef@toxicpanda.com>
Mon, 18 Sep 2023 18:15:33 +0000 (14:15 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Wed, 29 Nov 2023 14:51:13 +0000 (09:51 -0500)
commitac241605626f34b38c06243b9eca1a388f9d6edb
tree9a70f9dfe78537085f70a6f17ef14df79f0316e6
parent7ac538c86167c58e8929d59206973faf5db3c27e
btrfs: don't arbitrarily slow down delalloc if we're committing

We have a random schedule_timeout() if the current transaction is
committing, which seems to be a holdover from the original delalloc
reservation code.

Remove this, we have the proper flushing stuff, we shouldn't be hoping
for random timing things to make everything work.  This just induces
latency for no reason.

CC: stable@vger.kernel.org # 5.4+
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
(cherry picked from commit 11aeb97b45ad2e0040cbb2a589bc403152526345)
fs/btrfs/delalloc-space.c