aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2025-06-20 15:37:01 +0000
committerDavid Sterba <[email protected]>2025-06-27 17:58:12 +0000
commit157501b0469969fc1ba53add5049575aadd79d80 (patch)
tree5c16ad1aab5c51b01a9ff8bbabb5d3006b7a4624 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentbtrfs: propagate last_unlink_trans earlier when doing a rmdir (diff)
downloadkernel-157501b0469969fc1ba53add5049575aadd79d80.tar.gz
kernel-157501b0469969fc1ba53add5049575aadd79d80.zip
btrfs: use btrfs_record_snapshot_destroy() during rmdir
We are setting the parent directory's last_unlink_trans directly which may result in a concurrent task starting to log the directory not see the update and therefore can log the directory after we removed a child directory which had a snapshot within instead of falling back to a transaction commit. Replaying such a log tree would result in a mount failure since we can't currently delete snapshots (and subvolumes) during log replay. This is the type of failure described in commit 1ec9a1ae1e30 ("Btrfs: fix unreplayable log after snapshot delete + parent dir fsync"). Fix this by using btrfs_record_snapshot_destroy() which updates the last_unlink_trans field while holding the inode's log_mutex lock. Fixes: 44f714dae50a ("Btrfs: improve performance on fsync against new inode after rename/unlink") Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions