[Sheepdog] [PATCH] sheepdog: remove wrong sd_release() calls

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon May 10 08:55:44 CEST 2010


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

diff --git a/block/sheepdog.c b/block/sheepdog.c
index ced4bc5..377565b 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1496,8 +1496,6 @@ static int sd_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
 	unsigned int datalen;
 	uint64_t offset;
 
-	sd_release(bs);
-
 	dprintf("sn_info: name %s id_str %s s: name %s vm_state_size %d "
 		"is_current %d\n", sn_info->name, sn_info->id_str,
 		s->name, sn_info->vm_state_size, s->is_current);
@@ -1577,8 +1575,6 @@ static int sd_snapshot_goto(BlockDriverState *bs, const char *snapshot_id)
 	uint32_t snapid = 0;
 	int ret = -ENOENT, fd;
 
-	sd_release(bs);
-
 	old_s = qemu_malloc(sizeof(struct bdrv_sd_state));
 	if (!old_s) {
 		eprintf("failed to allocate memory for old state. %m\n");
-- 
1.5.6.5




More information about the sheepdog mailing list