Messages in this thread | | | From | "Stephen C. Tweedie" <> | Date | Tue, 2 Nov 1999 18:06:28 +0000 (GMT) | Subject | Re: Linux Buffer Cache Does Not Support Mirroring |
| |
Hi,
On Tue, 02 Nov 1999 09:56:28 -0700, "Jeff V. Merkey" <jmerkey@timpanogas.com> said:
> I looked at the brw_page code. While everyone calls this an "async" > interface, in fact, it uses the same semantic as a sync interface and > does not allow support for callbacks.
I didn't say to use brw_page --- I said to look at brw_page. It sets up a vector of buffer_heads for the IO, and --- crucially --- initialises them with a callback, end_buffer_io_async.
_That_ is where you get async callback for temporary buffer_heads submitted to the IO layer. You can replace that callback function with anything you want. No, brw_page won't do an arbitrary callback for you, but it's a perfect example from which to construct your own function which does exactly the IO you want, with exactly the buffer-cache coherency you want, and exactly the callback you want at the end of it.
--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/
| |