cfq-iosched: make seek_mean converge more quickly
authorJeff Moyer <jmoyer@redhat.com>
Tue, 21 Apr 2009 05:25:04 +0000 (07:25 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 22 Apr 2009 06:35:11 +0000 (08:35 +0200)
commit4d00aa47e2337dcfe2d8a7215dbde3765b507167
tree069f0c202e6a3f3017b0a8b4320b31172bcc1071
parentb759113499d6c7cb75fab04f56772579308bc0f8
cfq-iosched: make seek_mean converge more quickly

Right now, depending on the first sector to which a process issues I/O,
the seek time may start out way out of whack. So make sure we start
with 0 sectors in seek, instead of the offset of the first request
issued.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c