On Fri, 5 Nov 1999, Mikulas Patocka wrote:
> There is another - more severe - destruction case: breada. On filesystems
> that use breada it can smash buffers randomly!

The whole point of having buffer cache (apart from some performance
benefit of caching) is to serialize io, i.e. getblk() returns a locked
buffer and until the caller is done with it nothing can do io on that
block. So there are (hopefully) no races of the kind you described in
current or future implementation of buffer cache (as long as it does not
deviate from old good SVR3 thing described in Bach's book).

Regards,
Tigran.

Reply via email to