cfq-iosched: don't regard requests with long distance as close
authorShaohua Li <shaohua.li@intel.com>
Mon, 28 Dec 2009 12:18:44 +0000 (13:18 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 28 Dec 2009 12:18:44 +0000 (13:18 +0100)
commit2f7a2d89a8b5915d89ad9ebeb0065db7d5831cea
tree776c4a7e47b07437c30411d7324b5a1c7de01696
parent6ec1480d8539c8e2e6ba7fbbeffe5adc640bfe98
cfq-iosched: don't regard requests with long distance as close

seek_mean could be very big sometimes, using it as close criteria is meaningless
as this doen't improve any performance. So if it's big, let's fallback to
default value.

Reviewed-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Shaohua Li<shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c