]> Git Repo - qemu.git/commit
block/parallels: switch to bdrv_read
authorRoman Kagan <[email protected]>
Tue, 28 Apr 2015 07:46:36 +0000 (10:46 +0300)
committerStefan Hajnoczi <[email protected]>
Fri, 22 May 2015 08:37:31 +0000 (09:37 +0100)
commit2944256997dd8b080f8b0cc062e4b663cb2ec09c
treedc88cca0cd662712285d44f068687b72c880e075
parent0789890467d30e2ab10d84b5398bdc903db8cb91
block/parallels: switch to bdrv_read

Switch the .bdrv_read method implementation from using bdrv_pread() to
bdrv_read() on the underlying file, since the latter is subject to i/o
throttling while the former is not.

Besides, since bdrv_read() operates in sectors rather than bytes, adjust
the helper functions to do so too.

Signed-off-by: Roman Kagan <[email protected]>
Reviewed-by: Denis V. Lunev <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
Message-id: 1430207220[email protected]
CC: Kevin Wolf <[email protected]>
CC: Stefan Hajnoczi <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
block/parallels.c
This page took 0.026192 seconds and 4 git commands to generate.