Whamcloud - gitweb
LU-14491 ldiskfs: do not corrupt journal with bh modification 96/41896/2
authorAndrew Perepechko <andrew.perepechko@hpe.com>
Fri, 5 Mar 2021 14:10:38 +0000 (17:10 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Mar 2021 18:33:36 +0000 (18:33 +0000)
commitd563f5140ffa183d0854cf7cd493ad884e314e3d
tree2d34a28bc44a61457589b6528edb274d295b7e89
parent3e6b7a785cab514a9703f6ae8d792113f5c53d19
LU-14491 ldiskfs: do not corrupt journal with bh modification

Currently, ldiskfs_xattr_delete_inode() zeroes xattr inode
references in cached buffers that haven't been prepared by
get_write_access().

When using journal checksums, it is possible that these buffers
are modified after the checksum is calculated but before the
buffer has been written to journal. Journal replay will fail
with a journal checksum error message if this transaction needs
to be replayed.

Change-Id: Ia3d44f24715ad97b505e08706933e4eb608c115f
Signed-off-by: Andrew Perepechko <andrew.perepechko@hpe.com>
HPE-bug-id: LUS-9483
Reviewed-on: https://review.whamcloud.com/41896
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel7.7/ext4-large-eas.patch
ldiskfs/kernel_patches/patches/sles15sp1/ext4-large-eas.patch