commit | d5103588aa39157c8eea3bb5fb6780bbd8be21b7 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Thu Jan 16 13:29:10 2014 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri Jan 24 17:40:28 2014 +0100 |
tree | 543f7cc92a36e0157cf35e474ee4eb74b8f6156e | |
parent | 9e1cb96d9a5e434f389a4d7b7ff4dcdd71e8ec0f [diff] |
block: Switch bdrv_io_limits_intercept() to byte granularity Request sizes used to be rounded down to the next sector boundary, allowing to bypass the I/O limit. Now all requests are accounted for with their exact byte size. Reported-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>