aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2011-09-29 15:26:58 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-07 12:32:38 -0800
commit4a78a06ce2ecea224c55eb2e171ea020110ecaa9 (patch)
treea4d3f05b0d0cb93bd5986a81101e76c9c4cac7b9 /include
parent610fba92198e257bb039e49c391bb73cd0c1b2b1 (diff)
cfq: calculate the seek_mean per cfq_queue not per cfq_io_context
commit b2c18e1e08a5a9663094d57bb4be2f02226ee61c upstream. async cfq_queue's are already shared between processes within the same priority, and forthcoming patches will change the mapping of cic to sync cfq_queue from 1:1 to 1:N. So, calculate the seekiness of a process based on the cfq_queue instead of the cfq_io_context. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/iocontext.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h
index 4da4a75c3f1..eb73632440f 100644
--- a/include/linux/iocontext.h
+++ b/include/linux/iocontext.h
@@ -40,16 +40,11 @@ struct cfq_io_context {
struct io_context *ioc;
unsigned long last_end_request;
- sector_t last_request_pos;
unsigned long ttime_total;
unsigned long ttime_samples;
unsigned long ttime_mean;
- unsigned int seek_samples;
- u64 seek_total;
- sector_t seek_mean;
-
struct list_head queue_list;
struct hlist_node cic_list;