Commit 44eb123126d289bac398cac0232309c228386671
1 parent
ad01b1ca79
[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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
block/cfq-iosched.c
... | ... | @@ -936,7 +936,7 @@ |
936 | 936 | * seeks. so allow a little bit of time for him to submit a new rq |
937 | 937 | */ |
938 | 938 | if (sample_valid(cic->seek_samples) && CIC_SEEKY(cic)) |
939 | - sl = 2; | |
939 | + sl = min(sl, msecs_to_jiffies(2)); | |
940 | 940 | |
941 | 941 | mod_timer(&cfqd->idle_slice_timer, jiffies + sl); |
942 | 942 | return 1; |