qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH 3/4] include/sysemu/block-backend: split header into I/O


From: Paolo Bonzini
Subject: Re: [RFC PATCH 3/4] include/sysemu/block-backend: split header into I/O and graph API
Date: Wed, 15 Sep 2021 14:14:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 13/09/21 15:27, Stefan Hajnoczi wrote:
+/*
+ * I/O API functions. These functions are thread-safe, and therefore
+ * can run in any AioContext.
"can run in any AioContext" makes me wonder what the exact requirements
are. Can they run in any*thread*  (regardless of whether an AioContext
even exists for that thread) or do they need to run in a thread that has
called qemu_set_current_aio_context()?

I think they can run in any thread as long as they have called aio_context_acquire/release; later on, they will be able to run in any thread completely (which will be the underlying mechanism for multiqueue).

Paolo




reply via email to

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