]> git.proxmox.com Git - mirror_qemu.git/commit
block: Use blk_co_pdiscard() for all BB level discard
authorKevin Wolf <kwolf@redhat.com>
Thu, 20 Oct 2016 10:56:14 +0000 (12:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:22 +0000 (19:05 +0200)
commit8c2e3dd55f54ba00fd0893a535c09b5fcd7a877b
treea4a54483fc4fdd2b7b7502eb71ffef0b35eda017
parentbe07a889816b72c6e73b7649afe563590156ff9c
block: Use blk_co_pdiscard() for all BB level discard

All read/write functions already have a single coroutine-based function
on the BlockBackend level through which all requests go (no matter what
API style the external caller used) and which passes the requests down
to the block node level.

This patch extends this mode of operation to discards.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/block-backend.c