static void ioreq_release(struct ioreq *ioreq, bool finish)

{

    struct XenBlkDev *blkdev = ioreq->blkdev;



    QLIST_REMOVE(ioreq, list);

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

    ioreq->blkdev = blkdev;

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

    if (finish) {

        blkdev->requests_finished--;

    } else {

        blkdev->requests_inflight--;

    }

}

static void ioreq_release(struct ioreq *ioreq, bool finish)

{

    struct XenBlkDev *blkdev = ioreq->blkdev;



    QLIST_REMOVE(ioreq, list);

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

    ioreq->blkdev = blkdev;

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

    if (finish) {

        blkdev->requests_finished--;

    } else {

        blkdev->requests_inflight--;

    }

}

    memset(ioreq, 0, sizeof(*ioreq));
static void FUNC_0(struct VAR_0 *VAR_0, bool VAR_1)

{

    struct XenBlkDev *VAR_2 = VAR_0->VAR_2;



    QLIST_REMOVE(VAR_0, list);

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

    VAR_0->VAR_2 = VAR_2;

    QLIST_INSERT_HEAD(&VAR_2->freelist, VAR_0, list);

    if (VAR_1) {

        VAR_2->requests_finished--;

    } else {

        VAR_2->requests_inflight--;

    }

}

static void FUNC_0(struct VAR_0 *VAR_0, bool VAR_1)
{ struct XenBlkDev *VAR_2 = VAR_0->VAR_2; QLIST_REMOVE(VAR_0, list); memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->VAR_2 = VAR_2; QLIST_INSERT_HEAD(&VAR_2->freelist, VAR_0, list); if (VAR_1) { VAR_2->requests_finished--; } else { VAR_2->requests_inflight--; } }