]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - block/cfq-iosched.c
block: add queue flag for SSD/non-rotational devices
[linux-2.6-omap-h63xx.git] / block / cfq-iosched.c
index 494b6fdcb18340d91395acf6883925a1f7c476e6..03a5953bb5df0cb16eb004bf8acb9bdbf3baad22 100644 (file)
@@ -878,6 +878,12 @@ static void cfq_arm_slice_timer(struct cfq_data *cfqd)
        struct cfq_io_context *cic;
        unsigned long sl;
 
+       /*
+        * SSD device without seek penalty, disable idling
+        */
+       if (blk_queue_nonrot(cfqd->queue))
+               return;
+
        WARN_ON(!RB_EMPTY_ROOT(&cfqq->sort_list));
        WARN_ON(cfq_cfqq_slice_new(cfqq));