]> git.baikalelectronics.ru Git - kernel.git/commit
[BLOCK] cfq-iosched: fix slice_left calculation
authorTejun Heo <htejun@gmail.com>
Thu, 10 Nov 2005 17:20:16 +0000 (18:20 +0100)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Sat, 12 Nov 2005 09:56:36 +0000 (10:56 +0100)
commit11103b473e6a9fc6030f85a901a6b5fe3b06138d
tree50ff24c84b2ecfc2e8e518b1d9aecf3be2bc8ec5
parent1c88f3b37e76634ca4f2c7ad53563e07beadc4f9
[BLOCK] cfq-iosched: fix slice_left calculation

When cfq slice expires, remainder of slice is calculated and stored in
cfqq->slice_left.  Current code calculates the opposite of remainder -
how many jiffies the cfqq has used past slice end.  This patch fixes
the bug.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
block/cfq-iosched.c