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

Commit 2439fe50 authored by Josef Bacik's avatar Josef Bacik Committed by Steven Whitehouse
Browse files

[DLM] Fix dlm_lowcoms_stop hang



When you attempt to release a lockspace in DLM, it will hang trying to down a
semaphore that has already been downed.  The attached patch fixes the problem.

Signed-off-by: default avatarJosef Bacik <jwhiter@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
Cc: Patrick Caulfield <pcaulfie@redhat.com>
parent 7d3c1feb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1407,7 +1407,7 @@ void dlm_lowcomms_stop(void)
	clean_writequeues();

	for (i = 0; i < max_nodeid; i++) {
		con = nodeid2con(i, 0);
		con = __nodeid2con(i, 0);
		if (con) {
			close_connection(con, true);
			if (con->othercon)