block.c (20a885a87d13fe3456b21716fdeca29519bdd9b8) block.c (d5f8d79c2f1f22cb883ae404abff1ee8276d47f1)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2020 Virtuozzo International GmbH.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1529 unchanged lines hidden (view full) ---

1538 .inactivate = bdrv_child_cb_inactivate,
1539 .change_aio_ctx = bdrv_child_cb_change_aio_ctx,
1540 .update_filename = bdrv_child_cb_update_filename,
1541 .get_parent_aio_context = child_of_bds_get_parent_aio_context,
1542};
1543
1544AioContext *bdrv_child_get_parent_aio_context(BdrvChild *c)
1545{
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2020 Virtuozzo International GmbH.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1529 unchanged lines hidden (view full) ---

1538 .inactivate = bdrv_child_cb_inactivate,
1539 .change_aio_ctx = bdrv_child_cb_change_aio_ctx,
1540 .update_filename = bdrv_child_cb_update_filename,
1541 .get_parent_aio_context = child_of_bds_get_parent_aio_context,
1542};
1543
1544AioContext *bdrv_child_get_parent_aio_context(BdrvChild *c)
1545{
1546 GLOBAL_STATE_CODE();
1546 IO_CODE();
1547 return c->klass->get_parent_aio_context(c);
1548}
1549
1550static int bdrv_open_flags(BlockDriverState *bs, int flags)
1551{
1552 int open_flags = flags;
1553 GLOBAL_STATE_CODE();
1554

--- 6623 unchanged lines hidden ---
1547 return c->klass->get_parent_aio_context(c);
1548}
1549
1550static int bdrv_open_flags(BlockDriverState *bs, int flags)
1551{
1552 int open_flags = flags;
1553 GLOBAL_STATE_CODE();
1554

--- 6623 unchanged lines hidden ---