]> git.proxmox.com Git - mirror_qemu.git/commit
block/parallels: switch to bdrv_read
authorRoman Kagan <rkagan@parallels.com>
Tue, 28 Apr 2015 07:46:36 +0000 (10:46 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
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 <rkagan@parallels.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Message-id: 1430207220-24458-4-git-send-email-den@openvz.org
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/parallels.c