projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d1d23
)
buffered_file: don't flush on put buffer
author
Juan Quintela
<quintela@redhat.com>
Tue, 24 Jul 2012 12:00:13 +0000
(14:00 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Thu, 20 Dec 2012 22:09:25 +0000
(23:09 +0100)
We call buffered_put_buffer with iothread held, and buffered_flush() does
synchronous writes. We only want to do the synchronous writes outside.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
buffered_file.c
patch
|
blob
|
history
diff --git
a/buffered_file.c
b/buffered_file.c
index d61d805de7d76d4a3633c53533657a64581b46dc..1d7fa2443dbd16ae6b259124c334bfcd53fbadcc 100644
(file)
--- a/
buffered_file.c
+++ b/
buffered_file.c
@@
-106,12
+106,6
@@
static int buffered_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, in
buffered_append(s, buf, size);
}
- error = buffered_flush(s);
- if (error < 0) {
- DPRINTF("buffered flush error. bailing: %s\n", strerror(-error));
- return error;
- }
-
return size;
}