static void block_job_unref(BlockJob *job)

{

    if (--job->refcnt == 0) {

        BlockDriverState *bs = blk_bs(job->blk);

        bs->job = NULL;

        block_job_remove_all_bdrv(job);

        blk_remove_aio_context_notifier(job->blk,

                                        block_job_attached_aio_context,

                                        block_job_detach_aio_context, job);

        blk_unref(job->blk);

        error_free(job->blocker);

        g_free(job->id);

        QLIST_REMOVE(job, job_list);

        g_free(job);

    }

}

static void block_job_unref(BlockJob *job)

{

    if (--job->refcnt == 0) {

        BlockDriverState *bs = blk_bs(job->blk);

        bs->job = NULL;

        block_job_remove_all_bdrv(job);

        blk_remove_aio_context_notifier(job->blk,

                                        block_job_attached_aio_context,

                                        block_job_detach_aio_context, job);

        blk_unref(job->blk);

        error_free(job->blocker);

        g_free(job->id);

        QLIST_REMOVE(job, job_list);

        g_free(job);

    }

}

static void block_job_unref(BlockJob *job)
static void FUNC_0(BlockJob *VAR_0)

{

    if (--VAR_0->refcnt == 0) {

        BlockDriverState *bs = blk_bs(VAR_0->blk);

        bs->VAR_0 = NULL;

        block_job_remove_all_bdrv(VAR_0);

        blk_remove_aio_context_notifier(VAR_0->blk,

                                        block_job_attached_aio_context,

                                        block_job_detach_aio_context, VAR_0);

        blk_unref(VAR_0->blk);

        error_free(VAR_0->blocker);

        g_free(VAR_0->id);

        QLIST_REMOVE(VAR_0, job_list);

        g_free(VAR_0);

    }

}

static void FUNC_0(BlockJob *VAR_0)
{ if (--VAR_0->refcnt == 0) { BlockDriverState *bs = blk_bs(VAR_0->blk); bs->VAR_0 = NULL; block_job_remove_all_bdrv(VAR_0); blk_remove_aio_context_notifier(VAR_0->blk,
block_job_attached_aio_context,
block_job_detach_aio_context, VAR_0); blk_unref(VAR_0->blk); error_free(VAR_0->blocker); g_free(VAR_0->id); QLIST_REMOVE(VAR_0, job_list); g_free(VAR_0); } }