On Fri, 15 Oct 1999 14:47:33 -0400, firstname.lastname@example.org said:
> From: "Stephen C. Tweedie" <email@example.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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/