/* Returns: 0 on success / -ENXIO if device does not exist  */
static int ibmvfc_target_alloc(struct scsi_target *starget)
/* Returns: 0 on success / -ENXIO if device does not exist  */
static int ibmvfc_target_alloc(struct scsi_target *starget)
{
	struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
	struct ibmvfc_host *vhost = shost_priv(shost);
	unsigned long flags = 0;
	spin_lock_irqsave(shost->host_lock, flags);
	starget->hostdata = (void *)(unsigned long)vhost->task_set++;
	spin_unlock_irqrestore(shost->host_lock, flags);
	return 0;
}