From 387cce3e845049dbdf1313bacb1c66c7fbaf31bd Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 14 Feb 2012 11:14:50 +0100 Subject: [PATCH 85/99] block: drop bdrv_has_async_rw() RH-Author: Kevin Wolf Message-id: <1329218101-24213-86-git-send-email-kwolf@redhat.com> Patchwork-id: 37286 O-Subject: [RHEL-6.3 qemu-kvm PATCH v2 85/96] block: drop bdrv_has_async_rw() Bugzilla: 783950 RH-Acked-by: Paolo Bonzini RH-Acked-by: Marcelo Tosatti RH-Acked-by: Laszlo Ersek From: Stefan Hajnoczi Bugzilla: 783950 Commit cd74d83345e0e3b708330ab8c4cd9111bb82cda6 ("block: switch bdrv_read()/bdrv_write() to coroutines") removed the bdrv_has_async_rw() callers. This patch removes bdrv_has_async_rw() since it is no longer used. Signed-off-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf (cherry picked from commit 09f085d59dcca7cccc76a22ad4e5cc70e3ff2bdd) --- block.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) Signed-off-by: Michal Novotny --- block.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/block.c b/block.c index b4173e4..879fc7d 100644 --- a/block.c +++ b/block.c @@ -982,12 +982,6 @@ static int bdrv_check_request(BlockDriverState *bs, int64_t sector_num, nb_sectors * BDRV_SECTOR_SIZE); } -static inline bool bdrv_has_async_rw(BlockDriver *drv) -{ - return drv->bdrv_co_readv != bdrv_co_readv_em - || drv->bdrv_aio_readv != bdrv_aio_readv_em; -} - static inline bool bdrv_has_async_flush(BlockDriver *drv) { return drv->bdrv_aio_flush != bdrv_aio_flush_em; -- 1.7.7.5