diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2011-11-08 13:00:14 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-12-05 14:51:35 +0100 |
commit | 98f90dba5ee56f699b28509a6cc7a9a8a57636eb (patch) | |
tree | c84af5d910421cad50039d1cb45756a0250e3e2b /block_int.h | |
parent | e9e6295b28b331762e67d466f77ba07a349edbbc (diff) |
block: add I/O throttling algorithm
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block_int.h')
-rw-r--r-- | block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block_int.h b/block_int.h index 97b1c2be54..e2799e4f6b 100644 --- a/block_int.h +++ b/block_int.h @@ -39,6 +39,7 @@ #define BLOCK_IO_LIMIT_TOTAL 2 #define BLOCK_IO_SLICE_TIME 100000000 +#define NANOSECONDS_PER_SECOND 1000000000.0 #define BLOCK_OPT_SIZE "size" #define BLOCK_OPT_ENCRYPT "encryption" |