• P
    block: make discard asynchronous · 8238010b
    Paolo Bonzini 提交于
    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: NPaolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
    8238010b
raw-aio.h 1.6 KB