Linux-next parallel cp workload hang
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Al Viro
maintainer[dchinner Cc'd]
Quoted 20 lines · Xiong Zhou
Hi,
Parallel cp workload (xfstests generic/273) hangs like blow. It's reproducible with a small chance, less the 1/100 i think.
Have hit this in linux-next 20160504 0506 0510 trees, testing on xfs with loop or block device. Ext4 survived several rounds of testing.
Linux next 20160510 tree hangs within 500 rounds testing several times. The same tree with vfs parallel lookup patchset reverted survived 900 rounds testing. Reverted commits are attached.
Bisecting in this patchset ided this commit:
3b0a3c1ac1598722fc289da19219d14f2a37b31fis the first bad commit commit3b0a3c1ac1598722fc289da19219d14f2a37b31fAuthor: Al Viro <[email protected]> Date: Wed Apr 20 23:42:46 2016 -0400
Quoted 7 lines
simple local filesystems: switch to ->iterate_shared()
no changes needed (XFS isn't simple, but it has the same parallelism in the interesting parts exercised from CXFS).
With this commit reverted on top of Linux next 0510 tree, 5000+ rounds of testing passed.
Joy... So much for CXFS testing, probably... All that commit changes for XFS is allowing xfs_readdir() to be called in parallel for different struct file. We can always revert the XFS part, of course, but it would be interesting to find out what happens to be dependent on external exclusion there.