Revision 6c510fbf hw/virtio-blk.c

b/hw/virtio-blk.c
269 269
    if (ret != 0) {
270 270
        for (i = 0; i < num_writes; i++) {
271 271
            if (blkreq[i].error) {
272
                virtio_blk_req_complete(blkreq[i].opaque, VIRTIO_BLK_S_IOERR);
272
                virtio_blk_rw_complete(blkreq[i].opaque, -EIO);
273 273
            }
274 274
        }
275 275
    }
......
313 313
    acb = bdrv_aio_readv(req->dev->bs, req->out->sector, &req->qiov,
314 314
                         req->qiov.size / 512, virtio_blk_rw_complete, req);
315 315
    if (!acb) {
316
        virtio_blk_req_complete(req, VIRTIO_BLK_S_IOERR);
316
        virtio_blk_rw_complete(req, -EIO);
317 317
    }
318 318
}
319 319

  

Also available in: Unified diff