cfq-iosched: fix the slice residual sign
authorJens Axboe <jens.axboe@oracle.com>
Tue, 6 Oct 2009 18:53:44 +0000 (20:53 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 6 Oct 2009 19:09:32 +0000 (21:09 +0200)
We should subtract the slice residual from the rb tree key, since
a negative residual count indicates that the cfqq overran its slice
the last time. Hence we want to add the overrun time, to position
it a bit further away in the service tree.

Reported-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c

Simple merge