scsi-disk: make discard asynchronous
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 09:37:48 +0000 (10:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (17:44 +0200)
commitc1b3524788c156c49bff5f0415c39f9f0b7cc0e2
tree7d02a0964ffb0217f84c4a6ff68b4ecce4596c97
parent353815aa6d706b1960fbeb75c4fd2bef7b23ed3e
scsi-disk: make discard asynchronous

By making discard asynchronous, we can reuse all the error handling
code that is used for other commands.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c