]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use mapping shared locking for reading super block
authorFilipe Manana <fdmanana@suse.com>
Sun, 31 May 2026 10:36:06 +0000 (11:36 +0100)
committerJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 9 Jun 2026 16:22:46 +0000 (18:22 +0200)
commit00608e34167faca9dabc8baabc6ea0813dd7e2ae
tree24349cd718cd4411e9e202737bbd7360de688cdd
parent1ba72d847c7aa3c0887f749115af5232fd61b598
btrfs: use mapping shared locking for reading super block

There's no need to exclusively lock the mapping, shared locking is enough
to protect from a concurrent set block size operation (BLKBSZSET ioctl).

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/zoned.c