Re: Linux Buffer Cache Does Not Support Mirroring

Stephen C. Tweedie (sct@redhat.com)
Mon, 1 Nov 1999 23:30:22 +0000 (GMT)


Hi,

On Mon, 01 Nov 1999 15:53:07 -0700, "Jeff V. Merkey"
<jmerkey@timpanogas.com> said:

> As Linus puts it, they are "living in sin" rathe than incestuous. If
> you can show me some async I/O code, I'd love to see it and try to make
> this work.

Look at "brw_page" in fs/buffer.c. It creates new temporary
buffer_heads with which to do IO on a page, and submits them with the
"end_buffer_io_async" callback. That callback cleans up after the IOs
and wakes up any processes waiting on the page IO.

The buffer_heads are never in the buffer cache at any time.

--Stephen

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