summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell2019-07-22 19:42:29 +0200
committerPeter Maydell2019-07-22 19:42:29 +0200
commitecb199b177b3d94c1dfba2e7ba4595d368f780f7 (patch)
treed177e7167cf62b61f3aa97d6d7fb7b72225eccf6 /include
parentMerge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190722'... (diff)
parentblock: Only the main loop can change AioContexts (diff)
downloadqemu-ecb199b177b3d94c1dfba2e7ba4595d368f780f7.tar.gz
qemu-ecb199b177b3d94c1dfba2e7ba4595d368f780f7.tar.xz
qemu-ecb199b177b3d94c1dfba2e7ba4595d368f780f7.zip
Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2019-07-22' into staging
Block patches for 4.1.0-rc2: - NVMe block driver fixes - Drain/AioContext fixes # gpg: Signature made Mon 22 Jul 2019 17:44:45 BST # gpg: using RSA key 91BEB60A30DB3E8857D11829F407DB0061D5CF40 # gpg: issuer "mreitz@redhat.com" # gpg: Good signature from "Max Reitz <mreitz@redhat.com>" [full] # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1 1829 F407 DB00 61D5 CF40 * remotes/maxreitz/tags/pull-block-2019-07-22: block: Only the main loop can change AioContexts block: Dec. drained_end_counter before bdrv_wakeup block/nvme: don't touch the completion entries block/nvme: support larger that 512 bytes sector devices block/nvme: fix doorbell stride Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 60f00479e0..50a07c1c33 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -667,11 +667,9 @@ void bdrv_subtree_drained_begin(BlockDriverState *bs);
*
* This polls @bs's AioContext until all scheduled sub-drained_ends
* have settled. On one hand, that may result in graph changes. On
- * the other, this requires that all involved nodes (@bs and all of
- * its parents) are in the same AioContext, and that the caller has
- * acquired it.
- * If there are any nodes that are in different contexts from @bs,
- * these contexts must not be acquired.
+ * the other, this requires that the caller either runs in the main
+ * loop; or that all involved nodes (@bs and all of its parents) are
+ * in the caller's AioContext.
*/
void bdrv_drained_end(BlockDriverState *bs);