scsi_qla_host_t *ha; 
scsi_qla_host_t *ha = to_qla_host(cmd->device->host); os_tgt_t *tq = (os_tgt_t *) cmd->device->hostdata; fc_port_t *fcport = tq->fcport; os_lun_t *lq; 
qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd){	scsi_qla_host_t *ha;	srb_t *sp;	int rval = FAILED;	ha = (scsi_qla_host_t *) cmd->device->host->hostdata;	sp = (srb_t *) CMD_SP(cmd);	qla_printk(KERN_INFO, ha,	    "scsi(%ld:%d:%d:%d): LOOP RESET ISSUED.\n", ha->host_no,	    cmd->device->channel, cmd->device->id, cmd->device->lun);	spin_unlock_irq(ha->host->host_lock);	if (qla2x00_wait_for_hba_online(ha) != QLA_SUCCESS) {		DEBUG2(printk("%s failed:board disabled\n",__func__));		spin_lock_irq(ha->host->host_lock);		return FAILED;	}	if (qla2x00_wait_for_loop_ready(ha) == QLA_SUCCESS) {		if (qla2x00_loop_reset(ha) == QLA_SUCCESS) 			rval = SUCCESS;	}	spin_lock_irq(ha->host->host_lock);	if (rval == FAILED)		goto out;	/* Waiting for our command in done_queue to be returned to OS.*/	if (cmd->device->host->eh_active)		if (!qla2x00_eh_wait_for_pending_commands(ha))			rval = FAILED; out:	qla_printk(KERN_INFO, ha, "%s: reset %s\n", __func__,			(rval == FAILED) ? "failed" : "succeded");	return rval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f4f051ebb40e74ad0ba02d2cb3a6c16b0393472b/qla_os.c/clean/drivers/scsi/qla2xxx/qla_os.c