projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
594a45c
)
block: fix bdrv_read_unthrottled()
author
Peter Lieven
<pl@kamp.de>
Thu, 18 Jul 2013 08:37:32 +0000
(10:37 +0200)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 19 Jul 2013 04:29:22 +0000
(12:29 +0800)
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index b05e2d6ce9024c43f36d5f2661ab641ffc58f5ba..6cd39fa146d0c5eedd4fd7d26732a820955ee273 100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-2255,7
+2255,7
@@
int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num,
enabled = bs->io_limits_enabled;
bs->io_limits_enabled = false;
- ret = bdrv_read(bs,
0, buf, 1
);
+ ret = bdrv_read(bs,
sector_num, buf, nb_sectors
);
bs->io_limits_enabled = enabled;
return ret;
}