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)
commit04dc6e71a28d4815bf9431efcafc107bb0ad2792
treedd51f2491b984d9f8f571f2bdc6b51cadb8c686d
parent4d00aa47e2337dcfe2d8a7215dbde3765b507167
cfq-iosched: use the default seek distance when there aren't enough seek samples

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