Re: [Qemu-devel] [PATCH v2 12/40] job: Move defer_to_main_loop to Job

2018-05-18 Thread John Snow
On 05/18/2018 09:20 AM, Kevin Wolf wrote: > Move the defer_to_main_loop functionality from BlockJob to Job. > > The code can be simplified because we can use job->aio_context in > job_defer_to_main_loop_bh() now, instead of having to access the > BlockDriverState. > > Probably taking the

[Qemu-devel] [PATCH v2 12/40] job: Move defer_to_main_loop to Job

2018-05-18 Thread Kevin Wolf
Move the defer_to_main_loop functionality from BlockJob to Job. The code can be simplified because we can use job->aio_context in job_defer_to_main_loop_bh() now, instead of having to access the BlockDriverState. Probably taking the data->aio_context lock in addition was already unnecessary in