megaraid_queue(Scsi_Cmnd *scmd, void (*done)(Scsi_Cmnd *)){	adapter_t	*adapter;	scb_t	*scb;	int	busy=0;	unsigned long flags;	adapter = (adapter_t *)scmd->device->host->hostdata;	scmd->scsi_done = done;	/*	 * Allocate and build a SCB request	 * busy flag will be set if mega_build_cmd() command could not	 * allocate scb. We will return non-zero status in that case.	 * NOTE: scb can be null even though certain commands completed	 * successfully, e.g., MODE_SENSE and TEST_UNIT_READY, we would	 * return 0 in that case.	 */	spin_lock_irqsave(&adapter->lock, flags);	scb = mega_build_cmd(adapter, scmd, &busy);	if(scb) {		scb->state |= SCB_PENDQ;		list_add_tail(&scb->list, &adapter->pending_list);		/*		 * Check if the HBA is in quiescent state, e.g., during a		 * delete logical drive opertion. If it is, don't run		 * the pending_list.		 */		if(atomic_read(&adapter->quiescent) == 0) {			mega_runpendq(adapter);		}		return 0;	}	spin_unlock_irqrestore(&adapter->lock, flags);	return busy;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/238f9b063dcc9f23493a0d3fecca29fe332d4905/megaraid.c/buggy/drivers/scsi/megaraid.c