BUG in bread ?

From: BenHanokh Gabriel (gabriel@SANgate.com)
Date: Wed May 24 2000 - 03:22:55 EST


hi

i have notice that bread on the new kernel returns the "on disk" block
and not the cached block.
i.e. if i overwrite a file block, calling bread will return the OLD data
from disk,
and not the new data which is in the cache now.

i guess that the write is performs to the cache, but bread
doesn't know about it, and it reads the block from the disk.
( if i call sync() before bread, i get the new data )

i have tried the same code with kernel 2.2.14 and it works fine( i.e. i
get the recent data from the cache )
but kernel 2.3.99-pre8 changes this behavior.
is this a bug of a feature ?

please CC me for any answer
THX
/gabriel

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



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:11 EST