Re: [Qemu-block] [PATCH v2 13/16] blk: fix aio context loss on media change

2017-05-11 Thread Stefan Hajnoczi
On Wed, Apr 19, 2017 at 05:43:53PM +0800, Fam Zheng wrote: > From: Vladimir Sementsov-Ogievskiy > > If we have separate iothread for cdrom, we lose connection to it on > qmp_blockdev_change_medium, as aio_context is on bds which is dropped > and switched with new one. > > As an example result, a

[Qemu-block] [PATCH v2 13/16] blk: fix aio context loss on media change

2017-04-19 Thread Fam Zheng
From: Vladimir Sementsov-Ogievskiy If we have separate iothread for cdrom, we lose connection to it on qmp_blockdev_change_medium, as aio_context is on bds which is dropped and switched with new one. As an example result, after such media change we have crash on virtio_scsi_ctx_check: Assertion