diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 2c7a0f4f3cd7..7471d36bce89 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -142,8 +142,6 @@ struct cfq_queue { | |||
142 | struct cfq_queue *new_cfqq; | 142 | struct cfq_queue *new_cfqq; |
143 | struct cfq_group *cfqg; | 143 | struct cfq_group *cfqg; |
144 | struct cfq_group *orig_cfqg; | 144 | struct cfq_group *orig_cfqg; |
145 | /* Sectors dispatched in current dispatch round */ | ||
146 | unsigned long nr_sectors; | ||
147 | }; | 145 | }; |
148 | 146 | ||
149 | /* | 147 | /* |
@@ -883,8 +881,7 @@ static inline unsigned int cfq_cfqq_slice_usage(struct cfq_queue *cfqq) | |||
883 | slice_used = cfqq->allocated_slice; | 881 | slice_used = cfqq->allocated_slice; |
884 | } | 882 | } |
885 | 883 | ||
886 | cfq_log_cfqq(cfqq->cfqd, cfqq, "sl_used=%u sect=%lu", slice_used, | 884 | cfq_log_cfqq(cfqq->cfqd, cfqq, "sl_used=%u", slice_used); |
887 | cfqq->nr_sectors); | ||
888 | return slice_used; | 885 | return slice_used; |
889 | } | 886 | } |
890 | 887 | ||
@@ -918,8 +915,7 @@ static void cfq_group_served(struct cfq_data *cfqd, struct cfq_group *cfqg, | |||
918 | 915 | ||
919 | cfq_log_cfqg(cfqd, cfqg, "served: vt=%llu min_vt=%llu", cfqg->vdisktime, | 916 | cfq_log_cfqg(cfqd, cfqg, "served: vt=%llu min_vt=%llu", cfqg->vdisktime, |
920 | st->min_vdisktime); | 917 | st->min_vdisktime); |
921 | blkiocg_update_blkio_group_stats(&cfqg->blkg, used_sl, | 918 | blkiocg_update_blkio_group_stats(&cfqg->blkg, used_sl); |
922 | cfqq->nr_sectors); | ||
923 | } | 919 | } |
924 | 920 | ||
925 | #ifdef CONFIG_CFQ_GROUP_IOSCHED | 921 | #ifdef CONFIG_CFQ_GROUP_IOSCHED |
@@ -1525,7 +1521,6 @@ static void __cfq_set_active_queue(struct cfq_data *cfqd, | |||
1525 | cfqq->allocated_slice = 0; | 1521 | cfqq->allocated_slice = 0; |
1526 | cfqq->slice_end = 0; | 1522 | cfqq->slice_end = 0; |
1527 | cfqq->slice_dispatch = 0; | 1523 | cfqq->slice_dispatch = 0; |
1528 | cfqq->nr_sectors = 0; | ||
1529 | 1524 | ||
1530 | cfq_clear_cfqq_wait_request(cfqq); | 1525 | cfq_clear_cfqq_wait_request(cfqq); |
1531 | cfq_clear_cfqq_must_dispatch(cfqq); | 1526 | cfq_clear_cfqq_must_dispatch(cfqq); |
@@ -1870,7 +1865,6 @@ static void cfq_dispatch_insert(struct request_queue *q, struct request *rq) | |||
1870 | elv_dispatch_sort(q, rq); | 1865 | elv_dispatch_sort(q, rq); |
1871 | 1866 | ||
1872 | cfqd->rq_in_flight[cfq_cfqq_sync(cfqq)]++; | 1867 | cfqd->rq_in_flight[cfq_cfqq_sync(cfqq)]++; |
1873 | cfqq->nr_sectors += blk_rq_sectors(rq); | ||
1874 | } | 1868 | } |
1875 | 1869 | ||
1876 | /* | 1870 | /* |