aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-06-13 22:31:17 +0000
committerDavid Sterba <[email protected]>2022-07-25 15:45:38 +0000
commit1314ca78b2c35d3e7d0f097268a2ee6dc0d369ef (patch)
treec6971271c66c6573544b7351cbf560671b770fbb /fs/btrfs/dev-replace.c
parentbtrfs: send: add new command FILEATTR for file attributes (diff)
downloadkernel-1314ca78b2c35d3e7d0f097268a2ee6dc0d369ef.tar.gz
kernel-1314ca78b2c35d3e7d0f097268a2ee6dc0d369ef.zip
btrfs: reset block group chunk force if we have to wait
If you try to force a chunk allocation, but you race with another chunk allocation, you will end up waiting on the chunk allocation that just occurred and then allocate another chunk. If you have many threads all doing this at once you can way over-allocate chunks. Fix this by resetting force to NO_FORCE, that way if we think we need to allocate we can, otherwise we don't force another chunk allocation if one is already happening. Reviewed-by: Filipe Manana <[email protected]> CC: [email protected] # 5.4+ Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions