diff options
author | Christoph Hellwig <hch@lst.de> | 2011-08-25 08:26:10 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-26 18:18:38 +0200 |
commit | c488c7f649106d09df76f697adccbe6e72520b26 (patch) | |
tree | 7933f6f000b5ea1e5cc4bf528106f85575885723 /block.h | |
parent | a597e79ce14ea62266924acc7b8a7030a42ed29b (diff) |
block: latency accounting
Account the total latency for read/write/flush requests. This allows
management tools to average it based on a snapshot of the nr ops
counters and allow checking for SLAs or provide statistics.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -264,6 +264,7 @@ enum BlockAcctType { typedef struct BlockAcctCookie { int64_t bytes; + int64_t start_time_ns; enum BlockAcctType type; } BlockAcctCookie; |