ide: issue discard asynchronously but serialize the pieces
commit501378c3af16e8e83a9dd500c11e594f4d1dbe79
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Jan 2013 15:26:57 +0000 (14 16:26 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Jan 2013 09:03:48 +0000 (15 10:03 +0100)
treed07e6ee4a30154ff79c3c8debc333491e1b05fef
parent80bc2e8d807939bee89d1a5ca0dbe89946d39ed1
ide: issue discard asynchronously but serialize the pieces

Now that discard can take a long time, make it asynchronous.
Each LBA range entry is processed separately because discard
can be an expensive operation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/core.c