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


Reply via email to