qemu-e2k/block
Paolo Bonzini 6db39ae2e2 block: change discard to co_discard
Since coroutine operation is now mandatory, convert both bdrv_discard
implementations to coroutines.  For qcow2, this means taking the lock
around the operation.  raw-posix remains synchronous.

The bdrv_discard callback is then unused and can be eliminated.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-10-21 17:34:14 +02:00
..
blkdebug.c
blkverify.c
bochs.c
cloop.c
cow.c
curl.c
dmg.c
nbd.c
parallels.c
qcow2-cache.c
qcow2-cluster.c
qcow2-refcount.c
qcow2-snapshot.c
qcow2.c block: change discard to co_discard 2011-10-21 17:34:14 +02:00
qcow2.h
qcow.c
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c
qed.h
raw-posix-aio.h
raw-posix.c block: change discard to co_discard 2011-10-21 17:34:14 +02:00
raw-win32.c
raw.c
rbd.c
sheepdog.c
vdi.c
vmdk.c
vpc.c
vvfat.c