Commit 588e0090 authored by Kurt Hackel's avatar Kurt Hackel Committed by Mark Fasheh

ocfs2: do not send master requests to localhost

Signed-off-by: default avatarKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 8b219809
...@@ -994,6 +994,7 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, ...@@ -994,6 +994,7 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
spin_unlock(&res->spinlock); spin_unlock(&res->spinlock);
/* this will cause the master to re-assert across /* this will cause the master to re-assert across
* the whole cluster, freeing up mles */ * the whole cluster, freeing up mles */
if (res->owner != dlm->node_num) {
ret = dlm_do_master_request(mle, res->owner); ret = dlm_do_master_request(mle, res->owner);
if (ret < 0) { if (ret < 0) {
/* give recovery a chance to run */ /* give recovery a chance to run */
...@@ -1001,6 +1002,7 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm, ...@@ -1001,6 +1002,7 @@ static int dlm_wait_for_lock_mastery(struct dlm_ctxt *dlm,
msleep(500); msleep(500);
goto recheck; goto recheck;
} }
}
ret = 0; ret = 0;
goto leave; goto leave;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment