/* zfcp_erp_notify - Trigger ERP action. @erp_action: ERP action to continue. @set_mask: ERP action status flags to set.  */
void zfcp_erp_notify(struct zfcp_erp_action *erp_action, unsigned long set_mask)
/* zfcp_erp_notify - Trigger ERP action. @erp_action: ERP action to continue. @set_mask: ERP action status flags to set.  */
void zfcp_erp_notify(struct zfcp_erp_action *erp_action, unsigned long set_mask)
{
	struct zfcp_adapter *adapter = erp_action->adapter;
	unsigned long flags;
	write_lock_irqsave(&adapter->erp_lock, flags);
	if (zfcp_erp_action_exists(erp_action) == ZFCP_ERP_ACTION_RUNNING) {
		erp_action->status |= set_mask;
		zfcp_erp_action_ready(erp_action);
	}
	write_unlock_irqrestore(&adapter->erp_lock, flags);
}