Skip to contentSkip to conversation

Fix dlm_lowcoms_stop hang

PATCH New Josef Bacik 2 participants 2 messages Apr 19, 2007 – Apr 20, 2007 Distributed lock manager (DLM)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix dlm_lowcoms_stop hang

Hello,

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. Thank you,

Josef

fs/dlm/lowcomms.c +1 -1
index 76399b7..2b32f3c 100644
@@ -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)
#1 lore raw

PATCH 1/1 Fix dlm_lowcoms_stop hang

Hi,

Now applied to the git tree. Thanks,

Steve.

Quoted 24 lines · Josef Bacik

Hello,

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. Thank you,

Josef

fs/dlm/lowcomms.c +1 -1
index 76399b7..2b32f3c 100644
@@ -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)