Re: nonblocking disk read again

Stephen C. Tweedie (sct@redhat.com)
Mon, 18 Oct 1999 12:59:45 +0100 (BST)


Hi,

On Fri, 15 Oct 1999 14:47:33 -0400, tytso@mit.edu said:

> From: "Stephen C. Tweedie" <sct@redhat.com>
> Date: Thu, 14 Oct 1999 22:12:17 +0100 (BST)

> Yes, and in principle it would be possible to make the sendfile
> completely asynchronous, essentially by doing the disk IO asynchronously
> from a dedicated kernel thread.

> The other way of doing this is with callbacks; simply register the async
> sendfile function with an IO completion hook, and keep all of the state
> for the async sendmail in a structure. Then you can handle the async
> sendmail processing in a bottom half task, without having to dedicate a
> whole kernel thread to it.

You can't pull stuff from disk in a bottom-half. You _can_ reserve a
small number of kernel threads to deal with the async callbacks, though,
and keep the disk-to-network pipelines busy.

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