Revision 94d3f98a hw/spapr_vscsi.c

b/hw/spapr_vscsi.c
559 559
    }
560 560
}
561 561

  
562
static void vscsi_request_cancelled(SCSIRequest *sreq)
563
{
564
    VSCSIState *s = DO_UPCAST(VSCSIState, vdev.qdev, sreq->bus->qbus.parent);
565
    vscsi_req *req = vscsi_find_req(s, sreq);
566

  
567
    vscsi_put_req(s, req);
568
}
569

  
562 570
static void vscsi_process_login(VSCSIState *s, vscsi_req *req)
563 571
{
564 572
    union viosrp_iu *iu = &req->iu;
......
910 918
}
911 919

  
912 920
static const struct SCSIBusOps vscsi_scsi_ops = {
913
    .complete = vscsi_command_complete
921
    .complete = vscsi_command_complete,
922
    .cancel = vscsi_request_cancelled
914 923
};
915 924

  
916 925
static int spapr_vscsi_init(VIOsPAPRDevice *dev)

Also available in: Unified diff