diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-14 16:26:55 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-01-15 10:03:47 +0100 |
| commit | 8238010b265886249f9f3d45e890788319b7736e (patch) | |
| tree | b526fdc8a5ec57a5986d2cd64bf0f4217a9f3391 /hw/ide/core.c | |
| parent | fcd9d4555252c47a337357dfce0806e5dde99d96 (diff) | |
| download | focaccia-qemu-8238010b265886249f9f3d45e890788319b7736e.tar.gz focaccia-qemu-8238010b265886249f9f3d45e890788319b7736e.zip | |
block: make discard asynchronous
This is easy with the thread pool, because we can use s->is_xfs and s->has_discard from the worker function. QEMU has a widespread assumption that each I/O operation writes less than 2^32 bytes. This patch doesn't fix it throughout of course, but it starts correcting struct RawPosixAIOData so that there is no regression with respect to the synchronous discard implementation. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/ide/core.c')
0 files changed, 0 insertions, 0 deletions