Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6561168c authored by Mark Fasheh's avatar Mark Fasheh
Browse files

ocfs2_dlm: Call node eviction callbacks from heartbeat handler



With this, a dlm client can take advantage of the group protocol in the dlm
to get full notification whenever a node within the dlm domain leaves
unexpectedly.

Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 2d94dfc8
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -2321,6 +2321,13 @@ void dlm_hb_node_down_cb(struct o2nm_node *node, int idx, void *data)
	if (!dlm_grab(dlm))
	if (!dlm_grab(dlm))
		return;
		return;


	/*
	 * This will notify any dlm users that a node in our domain
	 * went away without notifying us first.
	 */
	if (test_bit(idx, dlm->domain_map))
		dlm_fire_domain_eviction_callbacks(dlm, idx);

	spin_lock(&dlm->spinlock);
	spin_lock(&dlm->spinlock);
	__dlm_hb_node_down(dlm, idx);
	__dlm_hb_node_down(dlm, idx);
	spin_unlock(&dlm->spinlock);
	spin_unlock(&dlm->spinlock);