From: Alan Cox Date: Fri, 17 Jul 2015 22:26:06 +0000 (+0100) Subject: inode: note a spot we need to optimise X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1dd1152ff97703452da5841cef74352b0e0c08da;p=FUZIX.git inode: note a spot we need to optimise --- diff --git a/Kernel/inode.c b/Kernel/inode.c index d7bfabb6..8b3e4d1d 100644 --- a/Kernel/inode.c +++ b/Kernel/inode.c @@ -68,6 +68,10 @@ void readi(inoptr ino, uint8_t flag) #if defined(read_direct) if (!ispipe && pblk != NULLBLK && amount == BLKSIZE && read_direct(flag) && bfind(dev, pblk) == 0) { /* we can transfer direct from disk to the userspace buffer */ + /* FIXME: allow for async queued I/O here. We want + an API something like breadasync() that either + does the cdread() or queues for a smart platform + or box with floppy tape devices */ off_t uostash; usize_t ucstash; uostash = udata.u_offset; /* stash file offset */