Skip to contentSkip to conversation

another semaphore lockup fix

PATCH New Josef Bacik 1 participant 1 message Apr 20, 2007 Distributed lock manager (DLM)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 another semaphore lockup fix

Hello,

Should have caught this yesterday but I didn't test until today. We already hold the connection semaphore when we get here, so we need to use __nodeid2con instead of nodeid2con. Thank you,

Josef

fs/dlm/lowcomms.c +1 -1
index 2b32f3c..6a4577d 100644
@@ -1351,7 +1351,7 @@ static void clean_writequeues(void)
 	int nodeid;
 
 	for (nodeid = 1; nodeid < max_nodeid; nodeid++) {
-		struct connection *con = nodeid2con(nodeid, 0);
+		struct connection *con = __nodeid2con(nodeid, 0);
 
 		if (con)
 			clean_one_writequeue(con);