OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f14f31
)
block: add forgotten bdrv_abort_perm_update() to bdrv_co_invalidate_cache()
author
Vladimir Sementsov-Ogievskiy
<vsementsov@virtuozzo.com>
Fri, 6 Nov 2020 12:42:35 +0000
(15:42 +0300)
committer
Max Reitz
<mreitz@redhat.com>
Mon, 9 Nov 2020 17:43:31 +0000
(18:43 +0100)
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <
20201106124241
.16950-2-vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index
2fd9321
..
1e68bd2
100644
(file)
--- a/
block.c
+++ b/
block.c
@@
-5787,6
+5787,7
@@
int coroutine_fn bdrv_co_invalidate_cache(BlockDriverState *bs, Error **errp)
bdrv_get_cumulative_perm(bs, &perm, &shared_perm);
ret = bdrv_check_perm(bs, NULL, perm, shared_perm, NULL, NULL, errp);
if (ret < 0) {
+ bdrv_abort_perm_update(bs);
bs->open_flags |= BDRV_O_INACTIVE;
return ret;
}