aboutsummaryrefslogtreecommitdiff
path: root/buffered_file.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-24 14:00:13 +0200
committerJuan Quintela <quintela@redhat.com>2012-12-20 23:09:25 +0100
commitc518dd841deb85b3ccf77ff93e1142b27b06af32 (patch)
treec80c5fac9f661732dde186f093db017a445a51de /buffered_file.c
parent78d1d231f889f7eae3835ddaec4373011792e46f (diff)
buffered_file: don't flush on put buffer
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>
Diffstat (limited to 'buffered_file.c')
-rw-r--r--buffered_file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/buffered_file.c b/buffered_file.c
index d61d805de7..1d7fa2443d 100644
--- 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;
}