]> Git Repo - qemu.git/blobdiff - pc-bios/s390-ccw/virtio-scsi.c
blockdev: reduce aio_context locked sections in bitmap add/remove
[qemu.git] / pc-bios / s390-ccw / virtio-scsi.c
index f61ecf020556812a57e68322d6f85795fc3ed0eb..4fe4b9d261a6c88dada4df3bfde3093cdd2f7e07 100644 (file)
@@ -9,6 +9,7 @@
  * directory.
  */
 
+#include "libc.h"
 #include "s390-ccw.h"
 #include "virtio.h"
 #include "scsi.h"
@@ -222,7 +223,8 @@ static void virtio_scsi_locate_device(VDev *vdev)
 
     for (target = 0; target <= vdev->config.scsi.max_target; target++) {
         sdev->channel = channel;
-        sdev->target = target; /* sdev->lun will be 0 here */
+        sdev->target = target;
+        sdev->lun = 0;          /* LUN has to be 0 for REPORT LUNS */
         if (!scsi_report_luns(vdev, data, sizeof(data))) {
             if (resp.response == VIRTIO_SCSI_S_BAD_TARGET) {
                 continue;
This page took 0.019589 seconds and 4 git commands to generate.