commit | 5094a6c016f6e7a4fc800816d716e10ce2331396 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Wed Jan 18 14:40:45 2012 +0000 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Jan 26 11:45:26 2012 +0100 |
tree | 5e4bf84bc906e65691479f910e3bdb3a71bd0a45 | |
parent | 4f1043b4ffdd6f130cab7c1d8d59d833a475adac [diff] |
block: rate-limit streaming operations This patch implements rate-limiting for image streaming. If we've exceeded the bandwidth quota for a 100 ms time slice we sleep the coroutine until the next slice begins. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>