Skip to contentSkip to conversation

sys_sync livelock fix

PATCH [email protected] 1 participant 1 message Feb 13, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

Yow, your message inspired me to re-read SuSv2 and indeed confirm,

As a side note, these days you should be reading SuSv3, it is an official standard now. See, for example,

http://www.UNIX-systems.org/version3/
http://www.opengroup.org/onlinepubs/007904975/toc.htm

Quoted 1 line

sync(2) schedules I/O but can return before completion

Don't forget that this standard does not describe what is desirable, but describes the minimum guaranteed by all Unices considered.

Having a sync that returns without having written the data is not especially useful. Also without the sync this data would have been written sooner or later.
We changed sync to wait, long ago, because otherwise shutdown would cause filesystem corruption.

Andries