Whamcloud - gitweb
LU-14491 ldiskfs: do not corrupt journal with bh change rh7.6 64/45164/2
authorAndrew Perepechko <andrew.perepechko@hpe.com>
Fri, 8 Oct 2021 10:05:50 +0000 (17:05 +0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Nov 2021 03:45:48 +0000 (03:45 +0000)
commite661eb7e1bc9e0483b4a8be30f3040ae796d005c
tree572171feb23ff409b517771b1bb72c31bff2b3e4
parent5c156b48425aae245537aaf10229734166463347
LU-14491 ldiskfs: do not corrupt journal with bh change rh7.6

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.

This is a port of:

Lustre-commit: d563f5140ffa183d0854cf7cd493ad884e314e3d
Lustre-change: https://review.whamcloud.com/41896

Test-Parameters: trivial
HPE-bug-id: LUS-9483
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I5ce1016737a16ddf74811c43ae74296d4f3e03b0
Reviewed-on: https://review.whamcloud.com/45164
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel7.6/ext4-large-eas.patch