diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-04-12 11:23:00 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-26 18:09:08 +0200 |
commit | e2dbca033710efea20b0b0a26ca05570dcdabd49 (patch) | |
tree | 9df6c8ed2f408e9ceea2b125a40f6cf028099eff /block/qed.c | |
parent | 1bce34aaa9d324b6d4aaf681e634e1840ca5d04e (diff) | |
download | qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.zip qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.tar.gz qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.tar.bz2 |
block: mark mixed functions that can suspend
The marking should be extended transitively to all functions that call
these ones, so that static analysis can be done much more efficiently.
However, this is a start and makes it possible to use vrc's path-based
searches to find potential bugs where coroutine_fns call blocking functions.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/qed.c')
-rw-r--r-- | block/qed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/qed.c b/block/qed.c index b2604d9..45ae320 100644 --- a/block/qed.c +++ b/block/qed.c @@ -570,8 +570,8 @@ static void coroutine_fn bdrv_qed_open_entry(void *opaque) qemu_co_mutex_unlock(&s->table_lock); } -static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags, - Error **errp) +static int coroutine_mixed_fn bdrv_qed_open(BlockDriverState *bs, QDict *options, + int flags, Error **errp) { QEDOpenCo qoc = { .bs = bs, |