Messages in this thread |  | | Date | Fri, 25 May 2001 20:02:53 +0100 | From | "Stephen C. Tweedie" <> | Subject | Re: DVD blockdevice buffers |
| |
Hi,
On Fri, May 25, 2001 at 02:24:52PM -0400, Alexander Viro wrote:
> If you are OK with adding two extra arguments to ->readpage() I could > submit a patch replacing that with plain and simple page cache by tomorrow. > It should not be a problem to port, but I want to get some sleep before > testing it...
The problem will be returning the IO completion status. We can't just rely on PG_Error: what happens if two separate partial reads are submitted at once within the same page, yet the page is not completely in cache? If we forced readpage to be synchronous in that case we could just return the status directly. Otherwise we need a separate way of determining the completion status once the page becomes unlocked (eg. have a special readpage return which means "all done, completion status is X", and resubmit the readpage to get that completion status once the page lock is dropped.)
--Stephen
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |