f_offset

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Apr 13 15:23:02 UTC 2008


In message <20080412221654.S959 at desktop>, Jeff Roberson writes:

>> The non p-prefix versions should always be serialized, because there
>> is know way of knowing where they read/write if you don't.
>
>Well that's at odds with what the standard says and what others implement. 
>I think there is a clear case for serializing writes.  I don't see what 
>advantage we get from serializing reads.  The heavy cost of 
>synchronization should be justified by actual need.

If you don't serialize read(2) and readv(2), how do you know where
they read from ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list