Whamcloud - gitweb
LU-15404 ldiskfs: fix truncate during setxattr for el7.9 35/51335/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jun 2023 19:32:05 +0000 (13:32 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Jun 2023 21:45:43 +0000 (21:45 +0000)
commit471ce3d95651ca06209a76973cae3bbdb5b6aa2f
tree7680a783ddc4b92d08851d60315d5df370e2d980
parentd0ae0079d747d05f74f733fb594d8edb512f8b16
LU-15404 ldiskfs: fix truncate during setxattr for el7.9

Backport the ext4-delayed-iput.patch to rhel7.9 kernels so the
delayed osd-ldiskfs truncate can use s_misc_wq consistently.

This moves the call to the final iput in a separate thread.
This way, setxattr transactions will never be split into two.
Since the setxattr code adds xattr inodes with nlink=0 into the
orphan list, old xattr inodes will be properly cleaned up in
any case.

Test-Parameters: trivial
Fixes: e239a14001 ("LU-15404 ldiskfs: truncate during setxattr leads to kernel panic")
Change-Id: Idd70befa6a83818ece06daccf9bb6256813ebbe5
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51335
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ldiskfs/kernel_patches/patches/rhel7.9/ext4-delayed-iput.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-3.10-rhel7.9.series