static void virtio_blk_dma_restart_cb(void *opaque, int running, int reason)

{

    VirtIOBlock *s = opaque;

    VirtIOBlockReq *req = s->rq;



    if (!running)

        return;



    s->rq = NULL;



    while (req) {

        virtio_blk_handle_write(req);

        req = req->next;

    }

}

static void virtio_blk_dma_restart_cb(void *opaque, int running, int reason)

{

    VirtIOBlock *s = opaque;

    VirtIOBlockReq *req = s->rq;



    if (!running)

        return;



    s->rq = NULL;



    while (req) {

        virtio_blk_handle_write(req);

        req = req->next;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)

{

    VirtIOBlock *s = VAR_0;

    VirtIOBlockReq *req = s->rq;



    if (!VAR_1)

        return;



    s->rq = NULL;



    while (req) {

        virtio_blk_handle_write(req);

        req = req->next;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)
{ VirtIOBlock *s = VAR_0; VirtIOBlockReq *req = s->rq; if (!VAR_1)
return; s->rq = NULL; while (req) { virtio_blk_handle_write(req); req = req->next; } }