/* zfcp_erp_wait - wait for completion of error recovery on an adapter @adapter: adapter for which to wait for completion of its error recovery  */
void zfcp_erp_wait(struct zfcp_adapter *adapter)
/* zfcp_erp_wait - wait for completion of error recovery on an adapter @adapter: adapter for which to wait for completion of its error recovery  */
void zfcp_erp_wait(struct zfcp_adapter *adapter)
{
	wait_event(adapter->erp_done_wqh,
		   !(atomic_read(&adapter->status) &
			ZFCP_STATUS_ADAPTER_ERP_PENDING));
}