diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 13:33:36 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 13:33:36 -0400 |
| commit | 096a705bbc080a4041636d07514560da8d78acbe (patch) | |
| tree | 38c3c01225709ffa53419083ea6332f8a72610de /include/linux/iocontext.h | |
| parent | fea80311a939a746533a6d7e7c3183729d6a3faf (diff) | |
| parent | 5757a6d76cdf6dda2a492c09b985c015e86779b1 (diff) | |
Merge branch 'for-3.1/core' of git://git.kernel.dk/linux-block
* 'for-3.1/core' of git://git.kernel.dk/linux-block: (24 commits)
block: strict rq_affinity
backing-dev: use synchronize_rcu_expedited instead of synchronize_rcu
block: fix patch import error in max_discard_sectors check
block: reorder request_queue to remove 64 bit alignment padding
CFQ: add think time check for group
CFQ: add think time check for service tree
CFQ: move think time check variables to a separate struct
fixlet: Remove fs_excl from struct task.
cfq: Remove special treatment for metadata rqs.
block: document blk_plug list access
block: avoid building too big plug list
compat_ioctl: fix make headers_check regression
block: eliminate potential for infinite loop in blkdev_issue_discard
compat_ioctl: fix warning caused by qemu
block: flush MEDIA_CHANGE from drivers on close(2)
blk-throttle: Make total_nr_queued unsigned
block: Add __attribute__((format(printf...) and fix fallout
fs/partitions/check.c: make local symbols static
block:remove some spare spaces in genhd.c
block:fix the comment error in blkdev.h
...
Diffstat (limited to 'include/linux/iocontext.h')
| -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 b2eee896dcbc..5037a0ad2312 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h | |||
| @@ -5,6 +5,14 @@ | |||
| 5 | #include <linux/rcupdate.h> | 5 | #include <linux/rcupdate.h> |
| 6 | 6 | ||
| 7 | struct cfq_queue; | 7 | struct cfq_queue; |
| 8 | struct cfq_ttime { | ||
| 9 | unsigned long last_end_request; | ||
| 10 | |||
| 11 | unsigned long ttime_total; | ||
| 12 | unsigned long ttime_samples; | ||
| 13 | unsigned long ttime_mean; | ||
| 14 | }; | ||
| 15 | |||
| 8 | struct cfq_io_context { | 16 | struct cfq_io_context { |
| 9 | void *key; | 17 | void *key; |
| 10 | 18 | ||
| @@ -12,11 +20,7 @@ struct cfq_io_context { | |||
| 12 | 20 | ||
| 13 | struct io_context *ioc; | 21 | struct io_context *ioc; |
| 14 | 22 | ||
| 15 | unsigned long last_end_request; | 23 | struct cfq_ttime ttime; |
| 16 | |||
| 17 | unsigned long ttime_total; | ||
| 18 | unsigned long ttime_samples; | ||
| 19 | unsigned long ttime_mean; | ||
| 20 | 24 | ||
| 21 | struct list_head queue_list; | 25 | struct list_head queue_list; |
| 22 | struct hlist_node cic_list; | 26 | struct hlist_node cic_list; |
