spin_unlock_irqrestore(&hd->ioc->FreeQlock, flags);
mptscsih_tm_pending_wait(MPT_SCSI_HOST * hd){	unsigned long  flags;	int            loop_count = 4 * 10;  /* Wait 10 seconds */	int            status = FAILED;	do {		spin_lock_irqsave(&hd->ioc->FreeQlock, flags);		if (hd->tmState == TM_STATE_NONE) {			hd->tmState = TM_STATE_IN_PROGRESS;			hd->tmPending = 1;			status = SUCCESS;			spin_unlock_irqrestore(&hd->ioc->FreeQlock, flags);			break;		}		spin_unlock_irqrestore(&hd->ioc->FreeQlock, flags);		msleep(250);	} while (--loop_count);	return status;}