]> git.baikalelectronics.ru Git - kernel.git/commit
as-iosched: fix write batch start point
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Wed, 5 Dec 2007 10:07:07 +0000 (21:07 +1100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 18 Dec 2007 07:29:28 +0000 (08:29 +0100)
commitd6e8fe1845a12a46519d29c30f04a89a3ff2ff20
tree47629c0533b9292f51cc9dc2f37d851e0913b727
parent1676b54f5e78853857e292e72ea07b6183dffb62
as-iosched: fix write batch start point

New write batches currently start from where the last one completed.
We have no idea where the head is after switching batches, so this
makes little sense.  Instead, start the next batch from the request
with the earliest deadline in the hope that we avoid a deadline
expiry later on.

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/as-iosched.c