spin_lock(&ha->hardware_lock); 
spin_lock_irqsave(&ha->hardware_lock, flags); 
qla2x00_eh_wait_for_pending_commands(scsi_qla_host_t *ha){	int	cnt;	int	status;	srb_t		*sp;	struct scsi_cmnd *cmd;	status = 1;	/*	 * Waiting for all commands for the designated target in the active	 * array	 */	for (cnt = 1; cnt < MAX_OUTSTANDING_COMMANDS; cnt++) {		spin_lock(&ha->hardware_lock);		sp = ha->outstanding_cmds[cnt];		if (sp) {			cmd = sp->cmd;			spin_unlock(&ha->hardware_lock);			status = qla2x00_eh_wait_on_command(ha, cmd);			if (status == 0)				break;		}		else {			spin_unlock(&ha->hardware_lock);		}	}	return (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/18e144d32cd3dae6953c385e4b376ef9688b61b0/qla_os.c/clean/drivers/scsi/qla2xxx/qla_os.c