(cherry-pick for R25)(modify and resend) Trigger sync right after writing.
This can trigger the sync mechanism earlier so that the kernel has enough
time to schedule a real disk sync before system reboots.
We sent this in CL 41269, however it is reverted because the sync() and
syncfs() make test cases timeout (tons of disk access). So we only sync
file itself in this CL and leave the whoe system sync outside cgpt.
TEST=make && make runtests ; and trybot
(cherry picked from commit 8e9b61a8f9e0d1446a2ac98db1959ed561880d91)
Reviewed-by: Hung-Te Lin <email@example.com>
Commit-Queue: Yung-Chieh Lo <firstname.lastname@example.org>
Tested-by: Yung-Chieh Lo <email@example.com>
1 file changed