/* First try a REPORT LUN scan, if that does not scan the target, do a sequential scan of LUNs on the target id.  */
void scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, unsigned int lun, int rescan)
/* First try a REPORT LUN scan, if that does not scan the target, do a sequential scan of LUNs on the target id.  */
void scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, unsigned int lun, int rescan)
{
	struct Scsi_Host *shost = dev_to_shost(parent);
	if (strncmp(scsi_scan_type, "none", 4) == 0)
		return;
	mutex_lock(&shost->scan_mutex);
	if (!shost->async_scan)
		scsi_complete_async_scans();
	if (scsi_host_scan_allowed(shost))
		__scsi_scan_target(parent, channel, id, lun, rescan);
	mutex_unlock(&shost->scan_mutex);
}