]> Git Repo - qemu.git/blobdiff - hw/scsi-bus.c
scsi: do not call scsi_read_data/scsi_write_data for a canceled request
[qemu.git] / hw / scsi-bus.c
index a97f1cdc1c74d7d6ce55dad659be1495eacd64be..01e1dec4ca577f7674c5619e2e3e51866da38114 100644 (file)
@@ -1508,6 +1508,10 @@ void scsi_req_unref(SCSIRequest *req)
    will start the next chunk or complete the command.  */
 void scsi_req_continue(SCSIRequest *req)
 {
+    if (req->io_canceled) {
+        trace_scsi_req_continue_canceled(req->dev->id, req->lun, req->tag);
+        return;
+    }
     trace_scsi_req_continue(req->dev->id, req->lun, req->tag);
     if (req->cmd.mode == SCSI_XFER_TO_DEV) {
         req->ops->write_data(req);
This page took 0.023149 seconds and 4 git commands to generate.