[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] block: drop bdrv_has_async_rw()
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 5/5] block: drop bdrv_has_async_rw() |
Date: |
Thu, 13 Oct 2011 21:09:32 +0100 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/5] block: remove unused emulation and synchronous functions, Stefan Hajnoczi, 2011/10/13
- [Qemu-devel] [PATCH 3/5] block: use coroutine interface for raw format, Stefan Hajnoczi, 2011/10/13
- [Qemu-devel] [PATCH 4/5] block: drop .bdrv_read()/.bdrv_write() emulation, Stefan Hajnoczi, 2011/10/13
- [Qemu-devel] [PATCH 2/5] raw-posix: remove bdrv_read()/bdrv_write(), Stefan Hajnoczi, 2011/10/13
- [Qemu-devel] [PATCH 5/5] block: drop bdrv_has_async_rw(),
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 1/5] block: drop emulation functions that use coroutines, Stefan Hajnoczi, 2011/10/13
- Re: [Qemu-devel] [PATCH 0/5] block: remove unused emulation and synchronous functions, Kevin Wolf, 2011/10/14