/* Return true if itnim is considered offline for holding off IO request. IO is not held if itnim is being deleted.  */
bfa_boolean_t bfa_itnim_hold_io(struct bfa_itnim_s *itnim)
/* Return true if itnim is considered offline for holding off IO request. IO is not held if itnim is being deleted.  */
bfa_boolean_t bfa_itnim_hold_io(struct bfa_itnim_s *itnim)
{
	return
		itnim->fcpim->path_tov && itnim->iotov_active &&
		(bfa_sm_cmp_state(itnim, bfa_itnim_sm_fwcreate) ||
		 bfa_sm_cmp_state(itnim, bfa_itnim_sm_sler) ||
		 bfa_sm_cmp_state(itnim, bfa_itnim_sm_cleanup_offline) ||
		 bfa_sm_cmp_state(itnim, bfa_itnim_sm_fwdelete) ||
		 bfa_sm_cmp_state(itnim, bfa_itnim_sm_offline) ||
		 bfa_sm_cmp_state(itnim, bfa_itnim_sm_iocdisable))
	;
}