spin_unlock(&ha->hardware_lock);
spin_unlock_irqrestore(&ha->hardware_lock, flags);
qla2x00_eh_wait_for_pending_target_commands(scsi_qla_host_t *ha, unsigned int t){	int	cnt;	int	status;	srb_t		*sp;	struct scsi_cmnd *cmd;	status = 0;	/*	 * 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);			if (cmd->device->id == t) {				if (!qla2x00_eh_wait_on_command(ha, cmd)) {					status = 1;					break;				}			}		} else {			spin_unlock(&ha->hardware_lock);		}	}	return (status);}