cfq-iosched: use the default seek distance when there aren't enough seek samples
authorJeff Moyer <jmoyer@redhat.com>
Tue, 21 Apr 2009 05:31:56 +0000 (07:31 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 22 Apr 2009 06:35:11 +0000 (08:35 +0200)
If the cfq io context doesn't have enough samples yet to provide a mean
seek distance, then use the default threshold we have for seeky IO instead
of defaulting to 0.

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

Simple merge