From 1dd1152ff97703452da5841cef74352b0e0c08da Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 17 Jul 2015 23:26:06 +0100 Subject: [PATCH] inode: note a spot we need to optimise --- Kernel/inode.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.34.1