mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-12-24 22:19:15 +01:00
b08ef6f98ec567876d7d45f15c85c6ed00d7c463
Opening the backing files with O_SYNC makes things really slow. So slow in fact that the modem times out after 10 seconds waiting for the last EFS sync to go through. I think this takes forever because rmtfs is doing 512-byte reads and writes. One option would be to make this bigger. But a better option is to not use O_SYNC, but explicitly do an fdatasync() after the iovec operation is complete. This is better because 1) it's way faster, we no longer see 10-12 second delays at rebooto time, and 2) partial syncs of the EFS file aren't useful anyway. Use fdatasync() as opposed to fsync() since it's not important for the metadata to be synced, just the file contents. Signed-off-by: Evan Green <evangreen86@gmail.com>
Description
Languages
C
98.4%
Makefile
1.6%