aboutsummaryrefslogtreecommitdiff
path: root/block/qed-check.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-04-30 15:36:11 +0300
committerKevin Wolf <kwolf@redhat.com>2019-04-30 15:29:00 +0200
commit54277a2aab876aba7b55c7e88e2b372691849741 (patch)
tree5932f10c995dce86374c549bb4724f9dbadbdcc7 /block/qed-check.c
parenta2aa8b07cd73ff25b90c11b332a9633dd4b33717 (diff)
downloadqemu-54277a2aab876aba7b55c7e88e2b372691849741.zip
qemu-54277a2aab876aba7b55c7e88e2b372691849741.tar.gz
qemu-54277a2aab876aba7b55c7e88e2b372691849741.tar.bz2
block/qed: add missed coroutine_fn markers
qed_read_table and qed_write_table use coroutine-only interfaces but are not marked coroutine_fn. Happily, they are called only from coroutine context, so we only need to add missed markers. Reported-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qed-check.c')
-rw-r--r--block/qed-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/qed-check.c b/block/qed-check.c
index 0edac03..418033e 100644
--- a/block/qed-check.c
+++ b/block/qed-check.c
@@ -106,7 +106,7 @@ static unsigned int qed_check_l2_table(QEDCheck *check, QEDTable *table)
/**
* Descend tables and check each cluster is referenced once only
*/
-static int qed_check_l1_table(QEDCheck *check, QEDTable *table)
+static int coroutine_fn qed_check_l1_table(QEDCheck *check, QEDTable *table)
{
BDRVQEDState *s = check->s;
unsigned int i, num_invalid_l1 = 0;
@@ -218,7 +218,7 @@ static void qed_check_mark_clean(BDRVQEDState *s, BdrvCheckResult *result)
}
/* Called with table_lock held. */
-int qed_check(BDRVQEDState *s, BdrvCheckResult *result, bool fix)
+int coroutine_fn qed_check(BDRVQEDState *s, BdrvCheckResult *result, bool fix)
{
QEDCheck check = {
.s = s,