mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
[PATCH] cfq-iosched: don't use a hard jiffies value, translate from msecs
The CIC_SEEKY() test really wants to use the minimum of either: - 2 msecs (not jiffies) - or, the pending slice time So code it like that. Signed-off-by: Jens Axboe <axboe@suse.de>
This commit is contained in:
parent
ad01b1ca79
commit
44eb123126
1 changed files with 1 additions and 1 deletions
|
@ -936,7 +936,7 @@ static int cfq_arm_slice_timer(struct cfq_data *cfqd, struct cfq_queue *cfqq)
|
||||||
* seeks. so allow a little bit of time for him to submit a new rq
|
* seeks. so allow a little bit of time for him to submit a new rq
|
||||||
*/
|
*/
|
||||||
if (sample_valid(cic->seek_samples) && CIC_SEEKY(cic))
|
if (sample_valid(cic->seek_samples) && CIC_SEEKY(cic))
|
||||||
sl = 2;
|
sl = min(sl, msecs_to_jiffies(2));
|
||||||
|
|
||||||
mod_timer(&cfqd->idle_slice_timer, jiffies + sl);
|
mod_timer(&cfqd->idle_slice_timer, jiffies + sl);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue