Re: [PATCH 3/3] block: protect BlockBackend->queued_requests with a lock

2023-03-03 Thread Hanna Czenczek
On 27.02.23 21:57, Stefan Hajnoczi wrote: The CoQueue API offers thread-safety via the lock argument that qemu_co_queue_wait() and qemu_co_enter_next() take. BlockBackend currently does not make use of the lock argument. This means that multiple threads submitting I/O requests can corrupt the CoQ

[PATCH 3/3] block: protect BlockBackend->queued_requests with a lock

2023-02-27 Thread Stefan Hajnoczi
The CoQueue API offers thread-safety via the lock argument that qemu_co_queue_wait() and qemu_co_enter_next() take. BlockBackend currently does not make use of the lock argument. This means that multiple threads submitting I/O requests can corrupt the CoQueue's QSIMPLEQ. Add a QemuMutex and pass i