is wait_on_buffer needed after getblk?

Mikulas Patocka (mikulas@artax.karlin.mff.cuni.cz)
Mon, 13 Dec 1999 21:54:48 +0100 (CET)


Hi Andrea.

Some times ago I found a race in buffer code - many filesystems do
getblk();mark_buffer_uptodate(); and then write to buffer. If the buffer
is under read i/o, written data are lost.

You created a patch for it, but I don't see it in kernel. What's the
status of this bug? Did anyone found that the race can't happen?

Is wait_on_buffer needed after getblk? I think yes, but no filesystem is
doing it.

Mikulas

-
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/