Yes, they are treated the same. If any part of the request is to be waited
upon then the whole request should be treated as synchronous.
And if no part of a readahead request is waited upon, we should never have
submited it anyway.
> If we assume they are synchronous, that would be rather unfair
> especially on multi-user systems - and the 90% accuracy that Rik
> suggested would seem exaggerated to say the least (accuracy would be
> more like 10% on a good day).
The simplified assumption that "reads are waited upon and writes are not" is
highly accurate.
I want to see the Linux I/O scheduler work as well as possible with workloads
which make that assumption 100% true. Once we have done that, then we can
start worrying about corner cases like AIO, O_SYNC, truncate, etc.
-
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/