[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] block: Mark 'block_resize' as coroutine
From: |
Kevin Wolf |
Subject: |
[PATCH 2/4] block: Mark 'block_resize' as coroutine |
Date: |
Thu, 9 Jan 2020 19:35:43 +0100 |
block_resize is safe to run in a coroutine, so use it as an example for
the new 'coroutine': true annotation in the QAPI schema.
Signed-off-by: Kevin Wolf <address@hidden>
---
qapi/block-core.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 7ff5e5edaf..1dbb2a9901 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1341,7 +1341,8 @@
{ 'command': 'block_resize',
'data': { '*device': 'str',
'*node-name': 'str',
- 'size': 'int' } }
+ 'size': 'int' },
+ 'coroutine': true }
##
# @NewImageMode:
--
2.20.1
- [PATCH 0/4] qmp: Optionally run handlers in coroutines, Kevin Wolf, 2020/01/09
- [PATCH 2/4] block: Mark 'block_resize' as coroutine,
Kevin Wolf <=
- [PATCH 1/4] qapi: Add a 'coroutine' flag for commands, Kevin Wolf, 2020/01/09
- [PATCH 3/4] vl: Initialise main loop earlier, Kevin Wolf, 2020/01/09
- [PATCH 4/4] qmp: Move dispatcher to a coroutine, Kevin Wolf, 2020/01/09
- Re: [PATCH 0/4] qmp: Optionally run handlers in coroutines, Marc-André Lureau, 2020/01/13