On http://review.whamcloud.com/7461 there was some discussion about setting the inode timestamps in mdt_hsm_release(). To test this I compared 7442+7461 with setting LA_
{A,M,C}TIME to 7442+7461 without setting LA_{A,M,C}
TIME. The script I used (hsm-times.sh) is attached. In the timestamp lines the first column is the current time, the second, third, and fourth are the atime, mtime, and ctime. I ran simultaneously on two nodes so the command execution times are all the same upto 1 second.
Without setting the timestamps, after release and remount, all timestamps have reverted to those from the first write.
I tried increasing the sleep duration to 30, 60, and 120, and still saw that without setting the timestamps in mdt_hsm_release() the final timestamps would be incorrect.
Duplicate of
LU-3811.