From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RERbC-0007Jk-Kx for qemu-devel@nongnu.org; Thu, 13 Oct 2011 16:09:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RERbB-0002Px-E8 for qemu-devel@nongnu.org; Thu, 13 Oct 2011 16:09:50 -0400 Received: from mtagate1.uk.ibm.com ([194.196.100.161]:46319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RERbB-0002PP-6y for qemu-devel@nongnu.org; Thu, 13 Oct 2011 16:09:49 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p9DK9lPB014172 for ; Thu, 13 Oct 2011 20:09:47 GMT Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p9DK9lCk2556156 for ; Thu, 13 Oct 2011 21:09:47 +0100 Received: from d06av12.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p9DK9lQj008935 for ; Thu, 13 Oct 2011 14:09:47 -0600 From: Stefan Hajnoczi Date: Thu, 13 Oct 2011 21:09:32 +0100 Message-Id: <1318536572-23771-6-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1318536572-23771-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1318536572-23771-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 5/5] block: drop bdrv_has_async_rw() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi 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 --- block.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/block.c b/block.c index 4d4d61a..9873b57 100644 --- a/block.c +++ b/block.c @@ -1027,12 +1027,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.6.3