static void ioreq_release(struct ioreq *ioreq)

{

    struct XenBlkDev *blkdev = ioreq->blkdev;



    LIST_REMOVE(ioreq, list);

    memset(ioreq, 0, sizeof(*ioreq));

    ioreq->blkdev = blkdev;

    LIST_INSERT_HEAD(&blkdev->freelist, ioreq, list);

    blkdev->requests_finished--;

}

static void ioreq_release(struct ioreq *ioreq)

{

    struct XenBlkDev *blkdev = ioreq->blkdev;



    LIST_REMOVE(ioreq, list);

    memset(ioreq, 0, sizeof(*ioreq));

    ioreq->blkdev = blkdev;

    LIST_INSERT_HEAD(&blkdev->freelist, ioreq, list);

    blkdev->requests_finished--;

}

static void FUNC_0(struct VAR_0 *VAR_0)

{

    struct XenBlkDev *VAR_1 = VAR_0->VAR_1;



    LIST_REMOVE(VAR_0, list);

    memset(VAR_0, 0, sizeof(*VAR_0));

    VAR_0->VAR_1 = VAR_1;

    LIST_INSERT_HEAD(&VAR_1->freelist, VAR_0, list);

    VAR_1->requests_finished--;

}

static void FUNC_0(struct VAR_0 *VAR_0)
{ struct XenBlkDev *VAR_1 = VAR_0->VAR_1; LIST_REMOVE(VAR_0, list); memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->VAR_1 = VAR_1; LIST_INSERT_HEAD(&VAR_1->freelist, VAR_0, list); VAR_1->requests_finished--; }