From c9e9e9c66cee9932fb28a41a4659aa421a7a3f78 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Wed, 11 May 2016 10:45:34 +0800 Subject: block: Drop superfluous invalidating bs->file from drivers Now they are invalidated by the block layer, so it's not necessary to do this in block drivers' implementations of .bdrv_invalidate_cache. Signed-off-by: Fam Zheng Reviewed-by: Alberto Garcia Signed-off-by: Kevin Wolf --- block/qed.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'block/qed.c') diff --git a/block/qed.c b/block/qed.c index 6cfd4c1..10ce18e 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1594,12 +1594,6 @@ static void bdrv_qed_invalidate_cache(BlockDriverState *bs, Error **errp) bdrv_qed_close(bs); - bdrv_invalidate_cache(bs->file->bs, &local_err); - if (local_err) { - error_propagate(errp, local_err); - return; - } - memset(s, 0, sizeof(BDRVQEDState)); ret = bdrv_qed_open(bs, NULL, bs->open_flags, &local_err); if (local_err) { -- cgit v1.1