search for: inq_result_len

Displaying 1 result from an estimated 1 matches for "inq_result_len".

2019 Sep 04
0
[PATCH] scsi: virtio_scsi: unplug LUNs when events missed
...scsi_device_put(sdev); > } > > +static void virtscsi_rescan_hotunplug(struct virtio_scsi *vscsi) > +{ > + struct scsi_device *sdev; > + struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); > + unsigned char scsi_cmd[MAX_COMMAND_SIZE]; > + int result, inquiry_len, inq_result_len = 256; > + char *inq_result = kmalloc(inq_result_len, GFP_KERNEL); > + > + shost_for_each_device(sdev, shost) { > + inquiry_len = sdev->inquiry_len ? sdev->inquiry_len : 36; > + > + memset(scsi_cmd, 0, sizeof(scsi_cmd)); > + scsi_cmd[0] = INQUIRY; > + scsi_cmd[4] =...