]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove lock protection for BLOCK_GROUP_FLAG_TO_COPY
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:25 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commit2728feec0a9d9e14d48f0fe6a392eb2de49e8c8a
tree03cf1e7cc25df6d5bbf8369c9af4fd2c410e811a
parentf4827aec2e5249888f06cf01df4826ea4ceec710
btrfs: remove lock protection for BLOCK_GROUP_FLAG_TO_COPY

We use this during device replace for zoned devices, we were simply
taking the lock because it was in a bit field and we needed the lock to
be safe with other modifications in the bitfield.  With the bit helpers
we no longer require that locking.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c