Commit e759eb3e authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

dlm: be sure we reset all nodes at forced shutdown



In case we running in a force shutdown in either midcomms or lowcomms
implementation we will make sure we reset all per midcomms node
information.

Fixes: 63e711b0 ("fs: dlm: create midcomms nodes when configure")
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 2776635e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -1405,10 +1405,16 @@ void dlm_midcomms_shutdown(void)
			midcomms_shutdown(node);
		}
	}
	srcu_read_unlock(&nodes_srcu, idx);
	mutex_unlock(&close_lock);

	dlm_lowcomms_shutdown();

	for (i = 0; i < CONN_HASH_SIZE; i++) {
		hlist_for_each_entry_rcu(node, &node_hash[i], hlist) {
			midcomms_node_reset(node);
		}
	}
	srcu_read_unlock(&nodes_srcu, idx);
	mutex_unlock(&close_lock);
}

int dlm_midcomms_close(int nodeid)