Revision 19d110ab hw/scsi-bus.c

b/hw/scsi-bus.c
549 549
    scsi_req_unref(req);
550 550
}
551 551

  
552
void scsi_req_abort(SCSIRequest *req, int status)
553
{
554
    req->status = status;
555
    if (req->dev && req->dev->info->cancel_io) {
556
        req->dev->info->cancel_io(req);
557
    }
558
    scsi_req_complete(req);
559
}
560

  
552 561
void scsi_device_purge_requests(SCSIDevice *sdev)
553 562
{
554 563
    SCSIRequest *req;

Also available in: Unified diff