Re: Lockless file reading

From: Jamie Lokier
Date: Wed Aug 27 2003 - 18:40:42 EST


Timo Sirainen wrote:
> Maybe it would be possible to use some kind of error detection
> checksums which would guarantee that the data either is valid or isn't,
> regardless of the order in which it is written. I don't really know how
> that could be done though.

You can use a strong checksum like MD5, if that is really faster than
locking. (Over NFS it probably is faster than fcntl()-locking, for
small data blocks).

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/