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)
commitb9c8946b192397394a0ccd4fcecb31bc060f79f8
tree54169a387e8e4a5f6f79e06de6fbdd0096198069
parent0b182d617eb50762b483658dd6dd9a9fbcb25758
cfq-iosched: fix the slice residual sign

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