On 13/08/20 16:57, Vladimir Sementsov-Ogievskiy wrote: > Hi! > > Sorry my stupid question, but which kind of concurrent access > bs->reqs_lock prevents? > > In my understanding the whole logic of request tracking for the bs is > going in the coroutine, so, we don't have parallel access anyway? How > can parallel access to bs->tracked_requests happen?
Different iothreads can access the same BlockDriverState, and block/io.c is not protected by the AioContext lock (in fact almost nothing, or nothing, needs it in the I/O path). Paolo
