Re: [Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
On Thu, May 1, 2014 at 5:03 PM, Richard W.M. Jones wrote: > On Thu, May 01, 2014 at 04:54:41PM +0200, Stefan Hajnoczi wrote: >> Drop the assumption that we're using the main AioContext. Use >> bdrv_get_aio_context() to register fd handlers in the right AioContext >> for this BlockDriverState. >>

Re: [Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Richard W.M. Jones
On Thu, May 01, 2014 at 04:54:41PM +0200, Stefan Hajnoczi wrote: > Drop the assumption that we're using the main AioContext. Use > bdrv_get_aio_context() to register fd handlers in the right AioContext > for this BlockDriverState. > > The .bdrv_detach_aio_context() and .bdrv_attach_aio_context()

[Qemu-devel] [PATCH 17/22] ssh: use BlockDriverState's AioContext

2014-05-01 Thread Stefan Hajnoczi
Drop the assumption that we're using the main AioContext. Use bdrv_get_aio_context() to register fd handlers in the right AioContext for this BlockDriverState. The .bdrv_detach_aio_context() and .bdrv_attach_aio_context() interfaces are not needed since no fd handlers, timers, or BHs stay registe