diff options
author | Shaohua Li <shaohua.li@intel.com> | 2011-07-12 12:24:35 (GMT) |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-07-12 12:24:35 (GMT) |
commit | 383cd7213f95a2784ab5038fe292844178768b82 (patch) | |
tree | 625de0648246daff30a9030e350c29584d29441e /include | |
parent | 4aede84b33d6beb401136a3deca0651ae07c5e99 (diff) | |
download | linux-383cd7213f95a2784ab5038fe292844178768b82.tar.xz |
CFQ: move think time check variables to a separate struct
Move the variables to do think time check to a sepatate struct. This is
to prepare adding think time check for service tree and group. No
functional change.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iocontext.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index b2eee89..5037a0a 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h @@ -5,6 +5,14 @@ #include <linux/rcupdate.h> struct cfq_queue; +struct cfq_ttime { + unsigned long last_end_request; + + unsigned long ttime_total; + unsigned long ttime_samples; + unsigned long ttime_mean; +}; + struct cfq_io_context { void *key; @@ -12,11 +20,7 @@ struct cfq_io_context { struct io_context *ioc; - unsigned long last_end_request; - - unsigned long ttime_total; - unsigned long ttime_samples; - unsigned long ttime_mean; + struct cfq_ttime ttime; struct list_head queue_list; struct hlist_node cic_list; |