Skip to contentSkip to conversation

9p fix

GIT PULL Applied Greg Kurz 2 participants 3 messages Dec 23, 2015

lore
Share & tools
lore

Greg Kurz

author
#0 lore raw

The following changes since commit 5dc42c186d63b7b338594fc071cf290805dcc5a5:

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2015-12-22 14:21:42 +0000)

are available in the git repository at:

https://github.com/gkurz/qemu.git tags/for-upstream

for you to fetch changes up to 4b3a4f2d458ca5a7c6c16ac36a8d9ac22cc253d6:

virtio-9p: use accessor to get thread_pool (2015-12-23 10:56:58 +0100)

----------------------------------------------------------------
Fix a 2.5 regression.

----------------------------------------------------------------
Greg Kurz (1):
virtio-9p: use accessor to get thread_pool

 hw/9pfs/virtio-9p-coth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.4.3
author
#1 lore raw

[Qemu-devel] [PULL] virtio-9p: use accessor to get thread_pool

The aio_context_new() function does not allocate a thread pool. This is deferred to the first call to the aio_get_thread_pool() accessor. It is hence forbidden to access the thread_pool field directly, as it may be NULL. The accessor *must* be used always.

Fixes ebac1202c95a4f1b76b6ef3f0f63926fa76e753e
---
 hw/9pfs/virtio-9p-coth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/9pfs/virtio-9p-coth.c +1 -1
index fb6e8f80e0f4..ab9425c60fd2 100644
@@ -36,6 +36,6 @@ static int coroutine_enter_func(void *arg)
 void co_run_in_worker_bh(void *opaque)
 {
     Coroutine *co = opaque;
-    thread_pool_submit_aio(qemu_get_aio_context()->thread_pool,
+    thread_pool_submit_aio(aio_get_thread_pool(qemu_get_aio_context()),
                            coroutine_enter_func, co, coroutine_enter_cb, co);
 }
Signature · 1 line
2.4.3
#2 lore raw
In reply to Greg Kurz
Quoted 10 lines · Greg Kurz

The following changes since commit 5dc42c186d63b7b338594fc071cf290805dcc5a5:

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2015-12-22 14:21:42 +0000)

are available in the git repository at:

https://github.com/gkurz/qemu.git tags/for-upstream

for you to fetch changes up to 4b3a4f2d458ca5a7c6c16ac36a8d9ac22cc253d6:

Quoted 9 lines

virtio-9p: use accessor to get thread_pool (2015-12-23 10:56:58 +0100)

----------------------------------------------------------------
Fix a 2.5 regression.

----------------------------------------------------------------
Greg Kurz (1):
virtio-9p: use accessor to get thread_pool

Applied, thanks.

-- PMM