diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-07-15 15:45:28 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:27:54 +0200 |
commit | 588a486835b0bcf3fd457423f68204546220b6a7 (patch) | |
tree | c598296ebdd47cbce1760e37f12aeb2e5d6b460a /fs/btrfs/volumes.c | |
parent | 7b9c293b050f92e3441150f34f1dd801a0040e94 (diff) |
btrfs: remove lock protection for BLOCK_GROUP_FLAG_RELOCATING_REPAIR
Before when this was modifying the bit field we had to protect it with
the bg->lock, however now we're using bit helpers so we can stop
using the bg->lock.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4d03d2f47dc3..fb195a0a87da 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -8279,13 +8279,10 @@ bool btrfs_repair_one_zone(struct btrfs_fs_info *fs_info, u64 logical) if (!cache) return true; - spin_lock(&cache->lock); if (test_and_set_bit(BLOCK_GROUP_FLAG_RELOCATING_REPAIR, &cache->runtime_flags)) { - spin_unlock(&cache->lock); btrfs_put_block_group(cache); return true; } - spin_unlock(&cache->lock); kthread_run(relocating_repair_kthread, cache, "btrfs-relocating-repair"); |