On Wed, Jun 20, 2018 at 12:02:30PM -0700, Darrick J. Wong wrote: > I managed to cut the testcase down to a nine-line fsx script and so > turned it into a fstests regression case. It seems to reproduce 100% on > scsi disks and doesn't at all on pmem. > > Note that changing the second to last line of the fsxops script to call > punch_hole instead of zero_range triggers it too. > > I've also narrowed it down to something going wrong w.r.t. handling the > page cache somewhere under xfs_free_file_space. So far this doesn't reproduce for me with or without the iomap code. But I've only run it a few times in a VM on my laptop.