Whamcloud - gitweb
LU-15404 ldiskfs: fix truncate during setxattr for el7.9
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jun 2023 19:32:05 +0000 (13:32 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:47:16 +0000 (21:47 +0000)
commit0d8028b9125c1b7e17c3c7c73dbddff08796c616
tree3dff94c81be6bf05377dec383577d8b63b4c5068
parente65102c7b41f0c6274eb937149170095ce2427e4
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.

Lustre-change: https://review.whamcloud.com/51335
Lustre-commit: 471ce3d95651ca06209a76973cae3bbdb5b6aa2f

Test-Parameters: trivial serverdistro=el7.9
Fixes: e239a14001 ("LU-15404 ldiskfs: truncate during setxattr leads to kernel panic")
Change-Id: Idd70befa6a83818ece06daccf9bb6256813ebbe5
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52809
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@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