[Sheepdog] [PATCH 2/8] sheepdog: remove redundant block half use

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Apr 27 08:33:48 CEST 2010


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 block/sheepdog.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/block/sheepdog.c b/block/sheepdog.c
index 5c9a316..dcbe9d6 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -382,14 +382,6 @@ static void sd_finish_aiocb(struct sd_aiocb *acb)
 	qemu_aio_release(acb);
 }
 
-static void sd_aio_bh_cb(void *opaque)
-{
-	struct sd_aiocb *acb = opaque;
-	qemu_bh_delete(acb->bh);
-	acb->bh = NULL;
-	sd_finish_aiocb(acb);
-}
-
 static void sd_aio_cancel(BlockDriverAIOCB *blockacb)
 {
 	struct sd_aiocb *acb = (struct sd_aiocb *)blockacb;
@@ -1377,7 +1369,7 @@ abort:
 		free(buf);
 
 	acb->ret = ret;
-	sd_schedule_bh(sd_aio_bh_cb, acb);
+	sd_finish_aiocb(acb);
 	return;
 new_node_list:
 	reset_all_aios(s);
@@ -1463,7 +1455,7 @@ static void sd_readv_bh_cb(void *p)
 	}
 
 	acb->ret = ret;
-	sd_schedule_bh(sd_aio_bh_cb, acb);
+	sd_finish_aiocb(acb);
 	return;
 }
 
-- 
1.5.6.5




More information about the sheepdog mailing list