Deadline iosched: Reset batch for ordered requests
commitdfb3d72a9aa519672c9ae06f0d2f93eccb35482f
authorAaron Carroll <aaronc@gelato.unsw.edu.au>
Tue, 30 Oct 2007 09:40:13 +0000 (30 10:40 +0100)
committerJens Axboe <axboe@carl.home.kernel.dk>
Fri, 2 Nov 2007 07:47:25 +0000 (2 08:47 +0100)
treed6ec7e9b0e0ddbfa1acf59819caca071b1e1f29c
parent5d1a536621403b442eef60ddd35e6b7a46fb04b7
Deadline iosched: Reset batch for ordered requests

The deadline I/O scheduler does not reset the batch count when starting
a new batch at a higher-sectored request.  This means the second and
subsequent batch in the same data direction will never exceed a single
request in size whenever higher-sectored requests are pending.

This patch gives new batches in the same data direction as old ones
their full quota of requests by resetting the batch count.

Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/deadline-iosched.c