Skip to content

Commit

Permalink
[DLM] Fix dlm_lowcoms_stop hang
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef Bacik authored and Steven Whitehouse committed May 1, 2007
1 parent 7d3c1fe commit 2439fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2439fe5

Please sign in to comment.