diff options
author | 2024-11-29 13:33:03 +0000 | |
---|---|---|
committer | 2024-12-03 20:27:02 +0100 | |
commit | 9c803c474c6c002d8ade68ebe99026cc39c37f85 (patch) | |
tree | 89ae32616aec62d212a9ed5ee829a80e87e6861e /scripts/lib/kdoc/kdoc_parser.py | |
parent | btrfs: fix mount failure due to remount races (diff) | |
download | linux-rng-9c803c474c6c002d8ade68ebe99026cc39c37f85.tar.xz linux-rng-9c803c474c6c002d8ade68ebe99026cc39c37f85.zip |
btrfs: fix missing snapshot drew unlock when root is dead during swap activation
When activating a swap file we acquire the root's snapshot drew lock and
then check if the root is dead, failing and returning with -EPERM if it's
dead but without unlocking the root's snapshot lock. Fix this by adding
the missing unlock.
Fixes: 60021bd754c6 ("btrfs: prevent subvol with swapfile from being deleted")
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions