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 block: drop redundant bdrv_flush implementation 2011-10-21 17:34:13 +02:00
blkverify.c block: drop redundant bdrv_flush implementation 2011-10-21 17:34:13 +02:00
bochs.c block: take lock around bdrv_read implementations 2011-10-21 17:34:14 +02:00
cloop.c block: take lock around bdrv_read implementations 2011-10-21 17:34:14 +02:00
cow.c block: change flush to co_flush 2011-10-21 17:34:14 +02:00
curl.c
dmg.c block: take lock around bdrv_read implementations 2011-10-21 17:34:14 +02:00
nbd.c block: take lock around bdrv_write implementations 2011-10-21 17:34:14 +02:00
parallels.c block: take lock around bdrv_read implementations 2011-10-21 17:34:14 +02:00
qcow2-cache.c
qcow2-cluster.c qcow2: Fix bdrv_write_compressed error handling 2011-10-21 17:34:13 +02:00
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 block: change flush to co_flush 2011-10-21 17:34:14 +02:00
qed-check.c
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c block: drop redundant bdrv_flush implementation 2011-10-21 17:34:13 +02:00
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 block: change flush to co_flush 2011-10-21 17:34:14 +02:00
raw.c block: add bdrv_co_discard and bdrv_aio_discard support 2011-10-21 17:34:13 +02:00
rbd.c block: change flush to co_flush 2011-10-21 17:34:14 +02:00
sheepdog.c
vdi.c block: change flush to co_flush 2011-10-21 17:34:14 +02:00
vmdk.c block: change flush to co_flush 2011-10-21 17:34:14 +02:00
vpc.c block: change flush to co_flush 2011-10-21 17:34:14 +02:00
vvfat.c block: take lock around bdrv_write implementations 2011-10-21 17:34:14 +02:00