qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded qtask
Date: Thu, 1 Mar 2018 15:47:24 +0000
User-agent: Mutt/1.9.2 (2017-12-15)

On Thu, Mar 01, 2018 at 04:44:32PM +0800, Peter Xu wrote:
> qio_task_run_in_thread() allows main thread to run blocking operations
> in the background. However it has an assumption on that it's always
> working with the default context. This patch tries to allow the threaded
> QIO task framework to run with non-default gcontext.
> 
> Currently no functional change so far, so the QIOTasks are still always
> running on main context.
> 
> Signed-off-by: Peter Xu <address@hidden>
> ---
>  include/io/task.h    |  6 ++++--
>  io/channel-socket.c  |  9 ++++++---
>  io/dns-resolver.c    |  3 ++-
>  io/task.c            | 20 ++++++++++++++++++--
>  tests/test-io-task.c |  2 ++
>  5 files changed, 32 insertions(+), 8 deletions(-)
> 

Reviewed-by: Daniel P. Berrangé <address@hidden>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]