Re: [PATCH 11/15] block-backend: make queued_requests thread-safe

2023-01-16 Thread Kevin Wolf
Am 12.12.2022 um 13:59 hat Paolo Bonzini geschrieben: > Protect quiesce_counter and queued_requests with a QemuMutex, so that > they are protected from concurrent access in the main thread (for example > blk_root_drained_end() reached from bdrv_drain_all()) and in the iothread > (where any I/O oper

Re: [PATCH 11/15] block-backend: make queued_requests thread-safe

2023-01-11 Thread Stefan Hajnoczi
On Mon, Dec 12, 2022 at 01:59:16PM +0100, Paolo Bonzini wrote: > Protect quiesce_counter and queued_requests with a QemuMutex, so that > they are protected from concurrent access in the main thread (for example > blk_root_drained_end() reached from bdrv_drain_all()) and in the iothread > (where any

[PATCH 11/15] block-backend: make queued_requests thread-safe

2022-12-12 Thread Paolo Bonzini
Protect quiesce_counter and queued_requests with a QemuMutex, so that they are protected from concurrent access in the main thread (for example blk_root_drained_end() reached from bdrv_drain_all()) and in the iothread (where any I/O operation will call blk_inc_in_flight()). Signed-off-by: Paolo Bo