aboutsummaryrefslogtreecommitdiff
path: root/block/quorum.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2016-05-11 10:45:34 +0800
committerKevin Wolf <kwolf@redhat.com>2016-05-12 15:22:09 +0200
commitc9e9e9c66cee9932fb28a41a4659aa421a7a3f78 (patch)
treee31a2def88b58dda7b215dd535ee1d506c5a7f00 /block/quorum.c
parent0d1c5c91607d1c55a8f5db39c57c6e5c76e21131 (diff)
downloadqemu-c9e9e9c66cee9932fb28a41a4659aa421a7a3f78.zip
qemu-c9e9e9c66cee9932fb28a41a4659aa421a7a3f78.tar.gz
qemu-c9e9e9c66cee9932fb28a41a4659aa421a7a3f78.tar.bz2
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 <famz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/quorum.c')
-rw-r--r--block/quorum.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/block/quorum.c b/block/quorum.c
index da15465..8f7c099 100644
--- a/block/quorum.c
+++ b/block/quorum.c
@@ -747,21 +747,6 @@ static int64_t quorum_getlength(BlockDriverState *bs)
return result;
}
-static void quorum_invalidate_cache(BlockDriverState *bs, Error **errp)
-{
- BDRVQuorumState *s = bs->opaque;
- Error *local_err = NULL;
- int i;
-
- for (i = 0; i < s->num_children; i++) {
- bdrv_invalidate_cache(s->children[i]->bs, &local_err);
- if (local_err) {
- error_propagate(errp, local_err);
- return;
- }
- }
-}
-
static coroutine_fn int quorum_co_flush(BlockDriverState *bs)
{
BDRVQuorumState *s = bs->opaque;
@@ -1070,7 +1055,6 @@ static BlockDriver bdrv_quorum = {
.bdrv_aio_readv = quorum_aio_readv,
.bdrv_aio_writev = quorum_aio_writev,
- .bdrv_invalidate_cache = quorum_invalidate_cache,
.bdrv_detach_aio_context = quorum_detach_aio_context,
.bdrv_attach_aio_context = quorum_attach_aio_context,