]> err.no Git - linux-2.6/blobdiff - block/cfq-iosched.c
[PATCH] make taskstats sending completely independent of delay accounting on/off...
[linux-2.6] / block / cfq-iosched.c
index e25223e147a2a5e336a1a430dde49b3e43f00283..aae3123bf3eec6501faa46fdbf3000ea4bfa97af 100644 (file)
@@ -6,7 +6,6 @@
  *
  *  Copyright (C) 2003 Jens Axboe <axboe@suse.de>
  */
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/blkdev.h>
 #include <linux/elevator.h>
@@ -937,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
         */
        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);
        return 1;