summaryrefslogtreecommitdiffstats
tag nameretain-ilock-during-dir-ops_2023-12-29 (a9f4f471450f320da07bb8a721456ae231e41d3d)
tag date2023-12-29 19:54:22 -0800
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit 6ee83f43cb...
downloadxfs-linux-retain-ilock-during-dir-ops_2023-12-29.tar.gz
xfs: retain ILOCK during directory updates [v13.0 37/63]
This series changes the directory update code to retain the ILOCK on all files involved in a rename until the end of the operation. The upcoming parent pointers patchset applies parent pointers in a separate chained update from the actual directory update, which is why it is now necessary to keep the ILOCK instead of dropping it after the first transaction in the chain. As a side effect, we no longer need to hold the IOLOCK during an rmapbt scan of inodes to serialize the scan with ongoing directory updates. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZY+UbgAKCRBKO3ySh0YR psNmAPwJ4A995iJxYLfwi3EgiZlcNDZ6i5K2MW6mcV34bhGgJgEAlal7GWngB6ys byDyoBWQQfuzCIcdx7NOf9tXvSVh1w4= =eh8Y -----END PGP SIGNATURE-----