diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 494b6fdcb183..03a5953bb5df 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -878,6 +878,12 @@ static void cfq_arm_slice_timer(struct cfq_data *cfqd) | |||
878 | struct cfq_io_context *cic; | 878 | struct cfq_io_context *cic; |
879 | unsigned long sl; | 879 | unsigned long sl; |
880 | 880 | ||
881 | /* | ||
882 | * SSD device without seek penalty, disable idling | ||
883 | */ | ||
884 | if (blk_queue_nonrot(cfqd->queue)) | ||
885 | return; | ||
886 | |||
881 | WARN_ON(!RB_EMPTY_ROOT(&cfqq->sort_list)); | 887 | WARN_ON(!RB_EMPTY_ROOT(&cfqq->sort_list)); |
882 | WARN_ON(cfq_cfqq_slice_new(cfqq)); | 888 | WARN_ON(cfq_cfqq_slice_new(cfqq)); |
883 | 889 | ||