From 53ec73e264f481b79b52efcadc9ceb8f8996975c Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Fri, 29 May 2015 18:53:14 +0800 Subject: block: Use bdrv_drain to replace uncessary bdrv_drain_all There callers work on a single BlockDriverState subtree, where using bdrv_drain() is more accurate. Signed-off-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- block/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block') diff --git a/block/snapshot.c b/block/snapshot.c index 19395ae..49e143e 100644 --- a/block/snapshot.c +++ b/block/snapshot.c @@ -239,7 +239,7 @@ int bdrv_snapshot_delete(BlockDriverState *bs, } /* drain all pending i/o before deleting snapshot */ - bdrv_drain_all(); + bdrv_drain(bs); if (drv->bdrv_snapshot_delete) { return drv->bdrv_snapshot_delete(bs, snapshot_id, name, errp); -- cgit v1.1