OSDN Git Service

cfq: Give a chance to arm slice idle timer in case of group_idle
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / block / cfq-iosched.c
index 4e1f494..f578ff2 100644 (file)
@@ -2902,8 +2902,8 @@ static void cfq_arm_slice_timer(struct cfq_data *cfqd)
 
        /*
         * SSD device without seek penalty, disable idling. But only do so
-        * for devices that support queuing, otherwise we still have a problem
-        * with sync vs async workloads.
+        * for devices that support queuing (and when group idle is 0),
+        * otherwise we still have a problem with sync vs async workloads.
         */
        if (blk_queue_nonrot(cfqd->queue) && cfqd->hw_tag &&
                !cfqd->cfq_group_idle)