/* The caller of this routine ensures that the specified adapter has been shut down and that this operation has been completed. Thus, there are no pending erp_actions which would need to be handled here.  */
void zfcp_erp_thread_kill(struct zfcp_adapter *adapter)
/* The caller of this routine ensures that the specified adapter has been shut down and that this operation has been completed. Thus, there are no pending erp_actions which would need to be handled here.  */
void zfcp_erp_thread_kill(struct zfcp_adapter *adapter)
{
	kthread_stop(adapter->erp_thread);
	adapter->erp_thread = NULL;
	WARN_ON(!list_empty(&adapter->erp_ready_head));
	WARN_ON(!list_empty(&adapter->erp_running_head));
}