vianney/arch-luks-suspend — pull request #5 by real-or-random (2014-08-15 22:37:10+00:00)
Title: Move sync syscall just before luksSuspend

This avoids that a following sync syscall in in pm_suspend()
(called when we echo mem > /sys/power/state) hangs forever
in at least one case (on my machine).

I guess that one case is the following: if tracking access time
is enabled on an ext4 file system, then executing chroot in
arch-luks-suspend will require I/O in the sync syscall in
pm_suspend().

Anyway, it cannot be wrong to do the sync as late as possible.