From: Josef Bacik Date: Thu, 19 Apr 2007 21:59:05 +0000 (-0400) Subject: [DLM] Fix dlm_lowcoms_stop hang X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2439fe50724e8693e8b933b3f8125d870bfbdb25;p=deliverable%2Flinux.git [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: Josef Bacik Signed-off-by: Steven Whitehouse Cc: Patrick Caulfield --- diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 76399b7819b4..2b32f3c82feb 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -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)