/* This function is called from the functions which need to post events from interrupt context. This function allocates data structure required for posting event. It also keeps track of number of events pending and prevent event storm when there are too many events.  */
struct lpfc_fast_path_event* lpfc_alloc_fast_evt(struct lpfc_hba *phba)
/* This function is called from the functions which need to post events from interrupt context. This function allocates data structure required for posting event. It also keeps track of number of events pending and prevent event storm when there are too many events.  */
struct lpfc_fast_path_event* lpfc_alloc_fast_evt(struct lpfc_hba *phba)
{
		atomic_inc(&phba->fast_event_count);
		INIT_LIST_HEAD(&ret->work_evt.evt_listp);
		ret->work_evt.evt = LPFC_EVT_FASTPATH_MGMT_EVT;
	}
	return ret;
}