diff options
author | Hanna Reitz <hreitz@redhat.com> | 2022-04-27 13:40:54 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2022-05-04 15:55:23 +0200 |
commit | 15aee7ac9587562b1d021959dedc2bbb7e9a9fb3 (patch) | |
tree | bde98b035df33ee320172531c6ec21a2fd46efd5 /block.c | |
parent | a81d8d4a7203e4be392f9ad37af104759b7cbda5 (diff) | |
download | qemu-15aee7ac9587562b1d021959dedc2bbb7e9a9fb3.zip qemu-15aee7ac9587562b1d021959dedc2bbb7e9a9fb3.tar.gz qemu-15aee7ac9587562b1d021959dedc2bbb7e9a9fb3.tar.bz2 |
block: Classify bdrv_get_flags() as I/O function
This function is safe to call in an I/O context, and qcow2_do_open()
does so (invoked in an I/O context by qcow2_co_invalidate_cache()).
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220427114057.36651-2-hreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6298,7 +6298,7 @@ const char *bdrv_get_device_or_node_name(const BlockDriverState *bs) int bdrv_get_flags(BlockDriverState *bs) { - GLOBAL_STATE_CODE(); + IO_CODE(); return bs->open_flags; } |