/* Return the scb back to the free list of scbs. The caller must 'flush' the SCB before calling us. E.g., performing pci_unamp and/or pci_sync etc. NOTE NOTE: Make sure the scb is not on any list before calling this routine.  */
static void megaraid_dealloc_scb(adapter_t *adapter, scb_t *scb)
/* Return the scb back to the free list of scbs. The caller must 'flush' the SCB before calling us. E.g., performing pci_unamp and/or pci_sync etc. NOTE NOTE: Make sure the scb is not on any list before calling this routine.  */
static void megaraid_dealloc_scb(adapter_t *adapter, scb_t *scb)
{
	unsigned long		flags;
	scb->state	= SCB_FREE;
	scb->scp	= NULL;
	spin_lock_irqsave(SCSI_FREE_LIST_LOCK(adapter), flags);
	list_add(&scb->list, &adapter->kscb_pool);
	spin_unlock_irqrestore(SCSI_FREE_LIST_LOCK(adapter), flags);
	return;
}