|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v5 1/4] linux-aio: use LinuxAioState from the running thread |
Date: | Tue, 7 Mar 2023 11:58:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 3/7/23 09:48, Kevin Wolf wrote:
You mean we have a device that has a separate iothread, but a request is submitted from the main thread? This isn't even allowed today; if a node is in an iothread, all I/O must be submitted from that iothread. Do you know any code that does submit I/O from the main thread instead?
I think it is allowed, you just have to take the AioContext lock around the bdrv_*? For example it could happen when you do block device migration.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |