Re: [Qemu-devel] [PATCH 4/8] block: add a Rwlock to synchronous read/write drivers

2011-10-20 Thread Kevin Wolf
Am 19.10.2011 16:59, schrieb Paolo Bonzini: > The big conversion of bdrv_read/write to coroutines caused the two > homonymous callbacks in BlockDriver to become reentrant. It goes > like this: > > 1) bdrv_read is now called in a coroutine, and calls bdrv_read or > bdrv_pread. > > 2) the nested b

[Qemu-devel] [PATCH 4/8] block: add a Rwlock to synchronous read/write drivers

2011-10-19 Thread Paolo Bonzini
The big conversion of bdrv_read/write to coroutines caused the two homonymous callbacks in BlockDriver to become reentrant. It goes like this: 1) bdrv_read is now called in a coroutine, and calls bdrv_read or bdrv_pread. 2) the nested bdrv_read goes through the fast path in bdrv_rw_co_entry; 3)