Hannes, >> Any ideas? >> Can you enable SCSI logging via > > scsi.scsi_logging_level=216 > > on the kernel commandline and send me the output? You now effectively set SAM_STAT_CHECK_CONDITION if the scsi_cmnd has a sense buffer. The original code only set DRIVER_SENSE if the adapter response actually contained sense information: @@ -161,8 +161,7 @@ static void virtscsi_complete_cmd(struct virtio_scsi *vscsi, void *buf) min_t(u32, virtio32_to_cpu(vscsi->vdev, resp->sense_len), VIRTIO_SCSI_SENSE_SIZE)); - if (resp->sense_len) - set_driver_byte(sc, DRIVER_SENSE); + set_status_byte(sc, SAM_STAT_CHECK_CONDITION); } -- Martin K. Petersen Oracle Linux Engineering