]> 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)
commit9283b9e09a6d4c0150c33b5674d5071234218c99
tree03cf1e7cc25df6d5bbf8369c9af4fd2c410e811a
parent3349b57fd47b5de10936bd8928db546b20c9fb91
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