[PATCH 24/23] io-controller: Don't leave a queue active when a disk is idle
Rik van Riel
riel at redhat.com
Tue Sep 8 20:39:15 PDT 2009
Vivek Goyal wrote:
> o It is possible that when there is only a single queue in the system, it
> remains unexpired for a long time (because there is no IO activity on the
> disk). So when next request comes in after a long time, it might make
> scheduler think that all this while queue used the disk and it will assign
> a high vdisktime to the queue. Hence make sure queue is expired once all
> the requests have completed from the queue.
> o Also avoid unnecessarily expiring a queue when it has got one request
> dispatched to the queue and waiting for it to finish and it does not have
> more requests queued to dispatch.
> Signed-off-by: Vivek Goyal <vgoyal at redhat.com>
Acked-by: Rik van Riel <riel at redhat.com>
All rights reversed.
More information about the Containers