[DLM] Fix dlm_lowcoms_stop hang
authorJosef Bacik <jwhiter@redhat.com>
Thu, 19 Apr 2007 21:59:05 +0000 (17:59 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 1 May 2007 08:11:38 +0000 (09:11 +0100)
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 <jwhiter@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Patrick Caulfield <pcaulfie@redhat.com>
fs/dlm/lowcomms.c

index 76399b7819b41fc742854cc0c99a891236e2c567..2b32f3c82febc8f65c29c7ffc479a94e88b3de35 100644 (file)
@@ -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)