void block_job_cancel_sync(BlockJob *job)

{

    BlockDriverState *bs = job->bs;



    assert(bs->job == job);

    block_job_cancel(job);

    while (bs->job != NULL && bs->job->busy) {

        qemu_aio_wait();

    }

}

void block_job_cancel_sync(BlockJob *job)

{

    BlockDriverState *bs = job->bs;



    assert(bs->job == job);

    block_job_cancel(job);

    while (bs->job != NULL && bs->job->busy) {

        qemu_aio_wait();

    }

}

void block_job_cancel_sync(BlockJob *job)     while (bs->job != NULL && bs->job->busy) {
void FUNC_0(BlockJob *VAR_0)

{

    BlockDriverState *bs = VAR_0->bs;



    assert(bs->VAR_0 == VAR_0);

    block_job_cancel(VAR_0);

    while (bs->VAR_0 != NULL && bs->VAR_0->busy) {

        qemu_aio_wait();

    }

}

void FUNC_0(BlockJob *VAR_0)
{ BlockDriverState *bs = VAR_0->bs; assert(bs->VAR_0 == VAR_0); block_job_cancel(VAR_0); while (bs->VAR_0 != NULL && bs->VAR_0->busy) { qemu_aio_wait(); } }